**** BEGIN LOGGING AT Tue Jul 17 02:59:58 2012 Jul 17 03:12:07 ViewGroup frameTab = (ViewGroup) th.getTabContentView().getChildAt(1); parent = (ViewGroup) frameTab.getChildAt(0); give me a null pointer exception Jul 17 03:12:25 because apparently frameTab.getChildAt(0) returns null Jul 17 03:12:44 but i can see in my layout in my XML that frameTab has a child Jul 17 03:13:13 the docs say getTabContentView "Get the FrameLayout which holds tab content " Jul 17 03:13:32 so i have some tab content but the getChildAt(0) doesnt seem to recognise it Jul 17 03:17:21 anyone else run into any issues with scaling images up with only a single x or y set and using wrap_countent on the other? Jul 17 03:26:13 anyone else got any ideas: http://stackoverflow.com/questions/6446276/android-how-to-dynamically-change-inflated-tab-content ? Jul 17 03:27:02 f2prateek: "one thing i find easiest is use a method in the fragment accessible by the activity" what do you mean by this? Jul 17 03:27:13 the guy with the big green checkmark next to his answer seems to have an idea Jul 17 03:29:42 JakeWharton ✔ ?? Jul 17 03:29:58 oh Jul 17 03:29:59 no Jul 17 03:30:00 lol Jul 17 03:30:03 wrong link Jul 17 03:30:05 zz Jul 17 03:30:10 hahahah Jul 17 03:30:12 good answer Jul 17 03:30:22 http://paste.bradleygill.com/index.php?paste_id=380898 here we go Jul 17 03:30:30 JakeWharton ✔ Jul 17 03:33:29 JakeWharton ✔ Jul 17 03:47:41 Has anyone developed for the Zeemote? Jul 17 04:32:31 hello all Jul 17 04:32:36 anyone here using the Flurry location library? I implemented it in my app and now it shows up as 22% usage throughout the day even when I go into the app just once. Jul 17 04:55:29 "Linux OS with KVM. Windows and Mac OS X are not currently supported. Google TV emulation on a Linux workstation without KVM is also not supported" - now that's a bit shit >_< Jul 17 04:58:27 bankai_ googletv is a second class citizen in the android world Jul 17 04:58:51 gets shit dev tools, no open source Jul 17 04:59:47 no opensource? now that's interesting Jul 17 05:00:02 at least not that I've seen Jul 17 05:00:07 and I've looked Jul 17 05:00:25 it looks to me like android on x86, is that right? Jul 17 05:00:46 I think its like android, the architecture doesnt so much matter Jul 17 05:01:18 wonder why it's so hostile :S Jul 17 05:01:19 yeah I don't think it is limited to x86 Jul 17 05:01:55 if I had to guess, it'd be hte players involved Jul 17 05:01:59 samsung/sony etc Jul 17 05:02:15 probably some exclusivity there, as much as it hurts their efforts Jul 17 05:02:38 the KVM setup is a bit annoying ( for me anyway ), can't emulate virtualisation unfortunately Jul 17 05:03:00 my boss just got a google TV from sony as a beta tester or something, so i'm just doing some research Jul 17 05:03:19 I got emulator setuo rather easy on a linux box Jul 17 05:03:25 it wasnt fast or pretty but it did work Jul 17 05:03:29 without KVM ? Jul 17 05:03:33 with Jul 17 05:04:03 damn Jul 17 05:17:46 yo Jul 17 05:18:31 is there any way i can convert "R.id.something" from an ID to an actual resource Jul 17 05:18:55 *from a string Jul 17 05:19:00 to an actual resource Jul 17 05:19:03 why you may ask, Jul 17 05:19:13 well I want to iterate Jul 17 05:19:24 so R.id.tab0, R.id.tab1, R.id.tab2 etc Jul 17 05:21:01 yeah Jul 17 05:21:12 http://developer.android.com/reference/android/content/res/Resources.html#getIdentifier%28java.lang.String,%20java.lang.String,%20java.lang.String%29 Jul 17 05:22:31 sweet Jul 17 05:22:33 thanks very much Jul 17 05:35:25 R values are known at compile time Jul 17 05:35:32 put them in an int[] and iterate normally Jul 17 05:36:11 it's very convenient Jul 17 05:42:40 Hello can sombody tell me if its possible to send a startActivityForResult in a BaseExpandableListAdapter Jul 17 05:47:23 or is that not possible Jul 17 05:47:25 GKeizer: do you have a reference to your activity? Jul 17 05:47:44 yes Jul 17 05:48:20 but when i try context.startActivityForResult its not accepting it Jul 17 05:48:48 Leeds need to see the code? Jul 17 05:48:59 what is not 'accepting' it, how? Jul 17 05:49:52 also, Activity.startActivityForResult, not Context. Jul 17 05:51:11 http://pastebin.com/wAzsNKHv --> i need the code on line 446 is that possible Jul 17 05:53:56 do you know the difference between a context and an activity? Jul 17 05:54:03 I'm trying to register a service with binder c++, but addService() fails with a status -38 (ENOSYS) Jul 17 05:54:09 Not realu Jul 17 05:54:13 realy Jul 17 05:54:29 im trying to set up a 1 on 1 messenger. anyone got an idea on how each peer could find each other? Jul 17 05:55:03 GKeizer: do you know how inheritance works? Jul 17 05:55:13 a little Jul 17 05:55:59 time to learn Jul 17 05:56:37 oke :D ill try to do that Jul 17 06:00:03 the short answer: Activity inherits from Context - what you are passed is a Context, but it's actually an Activity... you need to cast the Context into an Activity before you can make Activity calls on it Jul 17 06:00:15 are arrays not thread safe? i.e. can i not be reading from one index in one thread while writing to another index in another thread? Jul 17 06:00:26 Question: Support Library does NOT appear in the repository for the Android SDK manager. how do I install the Support Library? Jul 17 06:02:01 Leeds: Thanks I'll try that Jul 17 06:05:39 i did cast it to a activity but still cant use startActivityForResult Jul 17 06:06:03 Question: im trying to set up a 1 on 1 messenger. anyone got an idea on how a peer could find the other peer? Jul 17 06:06:20 Prot: android tools->add support library Jul 17 06:06:44 Leeds: got it thx Jul 17 06:06:59 good, and pleasure Jul 17 06:14:17 I'm trying to create a gallery (images are from internet) using Android Gridview. I get this : http://troll.ws/i/6XuxWf.png Actually the images are square ones (100x100) and I need the row height to adjust such that the blue background should not be visible (square thumbails is what I need). Can someone help me to fix this? Here is the code : https://gist.github.com/3127516 Jul 17 06:17:30 hi Jul 17 06:17:40 I programmed a very simple broadcast received, but it doesn't work Jul 17 06:17:45 let me put up the code Jul 17 06:19:26 http://dpaste.com/771606/ Jul 17 06:19:51 any ideas ... the message "RECEIVER CALLED with Action" is never printed on screen ... why is that ? Jul 17 06:22:21 can someone help me with using binder from c++? Jul 17 06:22:31 evelyette: Can you paste the logcat as well? Jul 17 06:23:20 in the android sources, what does this line do " @android.view.RemotableViewMethod" Jul 17 06:23:42 napster, yeah, here: D/sender ( 7042): Broadcasting message Jul 17 06:23:42 D/dalvikvm( 1562): GC_EXPLICIT freed 6K, 52% free 2663K/5447K, external 716K/1038K, paused 8ms Jul 17 06:23:56 and the other lines are the same as the last one Jul 17 06:26:04 f2prateek: That the method can be used with remoteviews Jul 17 06:26:24 napster, any idea? Jul 17 06:29:38 evelyette: I guess the main activity should be on the foreground to receive it. And unresgiter the receiver in onPause(). thats what I do. Jul 17 06:29:42 does anybody had an issue with their valid SSL Certs not being identified by Android..... howto overcome that {not accepting it every time} Jul 17 06:30:20 napster, yes I'm unregistering it ... and yes the activity comes into the foreground, so it should receive the message Jul 17 06:30:21 SimonVT: thanks Jul 17 06:30:26 any other ideas ? Jul 17 06:31:48 evelyette: I dont see the main activity comes to foreground from your code. Call finish() before sending the broadcast may be? Jul 17 06:32:09 napster, yes I'm aslo doing that, sorry for not being clear Jul 17 06:33:02 why can two threads not access the same array at the same time? Jul 17 06:33:11 not accessing from the same indices Jul 17 06:33:15 evelyette: ok, then it should work. I dont see any issue. Jul 17 06:36:24 napster, I'm doing this: http://dpaste.com/771613/ Jul 17 06:36:43 So, at some point in my application, I enter a loop which performs some queries and appends data to a TextView. If the loop happens for too long, the Activity will hang and then *all of a sudden* all the data shows up in my TextView. How can I make the UI update after every time I append text to the textView so it doesn't all bottle up and hang the activity? Jul 17 06:37:25 evelyette: try Finish before sending Jul 17 06:37:46 napster, I did, the same thing Jul 17 06:39:15 evelyette: don't unregister the receiver in onPause()... if you do, the broadcast cannot be received Jul 17 06:39:36 refreshDrawableState() ? Jul 17 06:39:59 nope...that doesn't seem to do it Jul 17 06:40:41 Question: Support Library does NOT appear in the repository for the Android SDK manager. how do I install the Support Library? Jul 17 06:41:22 ahh: found my problem/solution here: http://stackoverflow.com/questions/4282001/update-textview-from-function-android Jul 17 06:41:41 thilden: Actually he is registering it again in onResume(). So it should work, right? Jul 17 06:41:42 thilden, yeah that works ... but when should I call the unregister then, since the onPause is the only one guaranteed to be called ? Jul 17 06:45:17 does anybody had an issue with their valid SSL Certs not being identified by Android..... howto overcome that {not accepting it every time} Jul 17 06:45:41 import the proper root cert? Jul 17 06:45:44 Prot: Maybe you should worry about fixing your sdk install first Jul 17 06:45:53 SimonVT: reinstalled it 3 times Jul 17 06:46:03 Did you update sdk tools? Jul 17 06:46:11 updated everything I can Jul 17 06:46:18 installed the sdk, udpated every option in the sdk manager Jul 17 06:46:20 evelyette: do you need to register the receiver in code? you can also put in the manifest file Jul 17 06:46:23 but that option isn't there Jul 17 06:46:32 can't find any info except for a lot of people complaining about this bug and no one answering them with solutions Jul 17 06:46:42 i have the https bug too, but I simply disabled https and got past that Jul 17 06:46:49 basically android sdk manager is massively broken Jul 17 06:46:55 and there seems to be no info on why Jul 17 06:47:23 thilden, is there any preference why would I want it in the manifest file ? Jul 17 06:47:41 Most likely related issues :p Jul 17 06:47:50 I don't know Jul 17 06:48:18 well, i'd imagine that if the support library was available at all, it would appear in the repository xml file Jul 17 06:48:26 http://dl-ssl.google.com/android/repository/repository-7.xml it does not Jul 17 06:48:34 o_o Jul 17 06:48:57 evelyette: if the receiver is in the manifest, you don't need to care about registering and unregistering it in code. but if you need to expose the receiver only at certain times, you must do the un/registration in code Jul 17 06:49:34 thilden, aha cool: how can I register it in the manifest? Jul 17 06:49:52 http://dl-ssl.google.com/android/repository/addon.xml but here it is, which is the one used in the sdk manager Jul 17 06:50:09 excellent Jul 17 06:50:18 i figured that was the problem Jul 17 06:50:29 my sdk manager is pulling http://dl-ssl.google.com/android/repository/addons_list-2.xml Jul 17 06:50:35 never gets that one, and I re-downloaded the whole thing twice Jul 17 06:50:48 so basically whatever they changed recently broke the thing, but I can add that link manually Jul 17 06:51:17 yep, that fixed it. much appreciated Jul 17 06:51:45 evelyette: just like any other type of component (e.g. activity), http://developer.android.com/guide/topics/manifest/receiver-element.html Jul 17 06:51:53 the sdk manager comes with https://dl-ssl.google.com/android/repository/addons_list-2.xml which does not contain that repository or the support library Jul 17 06:52:18 thilden, napster thank you Jul 17 06:52:33 I find the layout gravity stuff so unintuitive Jul 17 06:53:30 evelyette: np Jul 17 06:53:39 Prot: addon.xml Jul 17 06:53:42 First one in the list Jul 17 06:53:54 Oh well, it works Jul 17 06:54:55 SimonVT: yep i noticed that, but it doesn't apply to the sdk manager for me Jul 17 06:55:01 adding it manually did Jul 17 06:55:32 having it as a relative path is probably a bad idea Jul 17 06:56:29 Belacan: do you not respect the laws of physics?!? Jul 17 06:57:00 JakeWharton ✔ Jul 17 06:57:32 <[SP]JESTER> lol Jul 17 06:57:44 need caffeine Jul 17 06:57:51 sudo make caffeine Jul 17 06:59:12 there are no laws of physics. this is just a simulation Jul 17 06:59:40 and its time for me to simulate sleeping Jul 17 07:08:50 do it JakeWharton Jul 17 07:08:54 caffiene is good Jul 17 07:09:03 the IV is already hooked up Jul 17 07:10:10 a coffee for get energy and bring a energy drink Jul 17 07:10:40 Hello, I am trying to create media player app with rtmp support, I have found rtmpdump (librtmp) but can't understand how to use it, can anyone help? Jul 17 07:22:20 JakeWharton ✔ Jul 17 07:22:36 All the cool kids are doing it, i just want to fit in Jul 17 07:25:28 hi, I just deleted my sqlite database from the application, and when running the app again, the onCreate of SqliteOpenHelper is called, but databases are not created Jul 17 07:26:55 this is the code: http://dpaste.com/771620/ Jul 17 07:26:56 any ideas ? Jul 17 07:27:22 how u deleted? u should increase version number and delete/create new tables at onupgrade Jul 17 07:28:25 ixc, I deleted the whole app and reinstalled Jul 17 07:29:01 evelyette: what is getWritableDatabase? Why are you not using the db argument to onCreate? Jul 17 07:29:48 getWritableDatabase makes sure the db is opened and can be written into ... db argument to onCreat ?? Jul 17 07:30:04 ah Jul 17 07:30:05 yes Jul 17 07:31:17 Yo Jul 17 07:31:26 do you guys know how to pass an int[] into a constructor Jul 17 07:31:33 fill ur database helper with logs, and lets see logcat Jul 17 07:31:36 i tried {20,0} for example Jul 17 07:31:54 i would guess new int[]{20,0} Jul 17 07:32:07 cool let me have a go Jul 17 07:32:13 what Snuffel said Jul 17 07:32:15 or Jul 17 07:32:22 if the array is the last parameter Jul 17 07:32:25 just 20, 0 Jul 17 07:32:39 romainguy__: is that java 7? :) Jul 17 07:32:42 5 Jul 17 07:32:43 this camera business is driving me crazy :( Jul 17 07:32:48 sweet it worked Jul 17 07:32:50 thanks very much Jul 17 07:32:52 we rock Jul 17 07:33:34 Snuffel: ✔ Jul 17 07:33:52 evelyette: it shouldn't even be possible to call getWritableDatabase from onCreate since it is getWritableDatabase that calls onCreate to create the db if necessary Jul 17 07:36:20 evelyette: just to be clear, when I wrote onCreate I ment SQLiteOpenHelper.onCreate(SQLiteDatabase) Jul 17 07:36:26 evelyette: The db passed as parameter is already writeable Jul 17 07:36:31 Use it Jul 17 07:39:34 or lose it Jul 17 07:52:17 How is a gridview, being a view, able to have "subviews" via an adapter? Jul 17 07:52:32 because it's really more like a layout Jul 17 07:52:54 so even though it is a view, it behaves more like a viewgroup? Jul 17 07:53:32 It's a subclass of gridview Jul 17 07:53:47 err Jul 17 07:53:49 viewgroup Jul 17 07:54:31 Oh that makes more sense, so I can go in and place the subviews (grid elements) by overriding onLayout? Jul 17 07:55:15 Err, sure.. Make sure you know what you're doing Jul 17 07:55:40 That's probably a bad idea Jul 17 07:55:52 There's likely no point in using gridview if you're overriding what it's doing Jul 17 07:56:27 I have an adapter simply returning an imageview, but in my gridview i can't seem to get it do anything but either show nothing or have two columns Jul 17 07:56:57 hello, I hope someone can help me :) I am currently writing an app, where the user can pick some of the installed app (that may or may not be running at the time) an when the app is active the network traffic is captured (capturing already works fine ) Jul 17 07:57:34 can someone tell me how I can manage to somehow get informed when an app starts or does some networking ? Jul 17 07:58:19 because when an app just sends some data to somewhere I will probably miss it if i check all 30 seconds if an app has open ports Jul 17 07:58:34 er, how are you capturing traffic? Jul 17 07:58:48 the device is rooted and i use tcpdump Jul 17 07:59:27 blah Jul 17 07:59:57 well i did not had a better idea - if you have please tell me :) Jul 17 08:06:29 hm. my application isnt creating an icon in the menu when installing Jul 17 08:06:37 do i need to add something to the androidmanifest for that to happen Jul 17 08:07:05 iirc last time i wrote an android application it happened automatically Jul 17 08:07:06 afaik yes Jul 17 08:07:35 u can setup icon for application and for activities too Jul 17 08:08:16 i got android:icon="@drawable/ic_launcher" in the its not creating one though Jul 17 08:08:39 so its use ic_launcher from drawables Jul 17 08:08:42 eSatsu isn't this the default icon ? Jul 17 08:08:51 Pinas: it is Jul 17 08:09:19 yes Jul 17 08:09:31 so if you have an icon with this name in drawables it should use this icon Jul 17 08:09:56 i mean, its not creating a shortcut into the application menu where all the other applications are Jul 17 08:10:17 oh Jul 17 08:10:25 have you decalred a main Activity ? Jul 17 08:10:35 yes Jul 17 08:10:56 Jul 17 08:10:57 its main activity in launcher category? Jul 17 08:11:01 Jul 17 08:11:14 in the main activity Jul 17 08:11:22 what is ur launcher? Jul 17 08:11:32 maybe has cache about apps? Jul 17 08:11:57 what do you mean Jul 17 08:13:58 ur launcher is stock android's launcher? Jul 17 08:14:37 yes Jul 17 08:15:27 i have a galaxy s3 with 4.0.4 stock rom, havent installed anything fancy on it, rooted or done any changes Jul 17 08:15:50 every other application ive ever installed on it have properly created icons, but this one doesnt Jul 17 08:18:59 eSatsu: are you talking about a app icon in the list of all apps or the Google Play feature you can enable that creates a launcher shortcut when you install an app? Jul 17 08:19:29 eSatsu: anything in logcat that can give you a clue? Jul 17 08:20:48 appel1: i can see the application installed in the task manager -> downloaded applications Jul 17 08:21:00 but not in the list of applications you can open with the menu button Jul 17 08:21:30 so basically I have no means of launching the applications except by hitting open in the installer, and after that using the recent applications tab Jul 17 08:21:46 eSatsu: something must be wrong in your manifest then Jul 17 08:24:54 eSatsu: if u go settings, apps, searh ur app Jul 17 08:25:09 its have open button? u can press it? its open ur app? Jul 17 08:29:08 i can find the application in the list, but i cant open any of the applications there Jul 17 08:29:27 you only get to see certain info about the applications and you can terminate the apps there Jul 17 08:29:33 but cant open Jul 17 08:29:39 eSatsu, you didn't specify the intent filters for it to be visible on the app list Jul 17 08:29:55 http://pastebin.com/TKbGwjuy heres my manifest Jul 17 08:30:00 theres intent filter but uh Jul 17 08:30:09 is it missing something or am i doing something wrong? Jul 17 08:33:38 can lists be referenced like arrays, that is myList(0), myList(1)? Jul 17 08:33:57 eSatsu, mmmh, weird Jul 17 08:34:14 Lists are objects Jul 17 08:34:21 so you need to call a method Jul 17 08:34:59 Belacan, you can make an array out of a list though, or list out of an array Jul 17 08:35:36 what a profound question zharf Jul 17 08:35:40 Well Jul 17 08:35:47 what i really want is a two dimensional array of booleans Jul 17 08:36:03 Belacan, it was not a question.. Jul 17 08:36:04 so i was going to have a List of booleans[] Jul 17 08:36:33 can one make 2D arrays of booleans? Jul 17 08:36:40 like boolean[][] Jul 17 08:36:45 sure Jul 17 08:36:51 did you try? ;) Jul 17 08:37:44 no :) Jul 17 08:37:47 it could be that this only happens on my s3 Jul 17 08:38:01 no, it couldn't Jul 17 08:38:02 Zharf: ✔ Jul 17 08:39:11 boolean[][] truthTable = new boolean[8][10]; truthTable[0]{false,true,false,true,false,true,true,false,false,true}; Jul 17 08:39:42 im gonna try to install it on a galaxy nexus next Jul 17 08:39:43 i don't think you can initialize only part of the array like that Jul 17 08:39:59 oh Jul 17 08:40:05 you have to do it liniarly? Jul 17 08:40:07 interesting Jul 17 08:40:17 so it will automatically divide it Jul 17 08:40:21 is there a possibilitie to get informed when a defined app is started ? Jul 17 08:40:23 into 8ts in my case Jul 17 08:40:30 logcat? Jul 17 08:40:57 will inside an app Jul 17 08:43:33 lmao look at this yahoo answers top answer Jul 17 08:43:35 http://answers.yahoo.com/question/index?qid=20090410102838AAblXye Jul 17 08:43:44 "Not sure what this has to do with Java2D, this is basic Java." Jul 17 08:43:54 ✔ Jul 17 08:50:39 boolean[][] truthTable = new boolean[10][8]; Jul 17 08:53:31 Belacan: well done Jul 17 08:53:45 ✔ Jul 17 08:54:40 whats the difference between a primitive type and non primitive type, int and Integer for example Jul 17 08:54:54 primitives are not instances of classes Jul 17 08:55:02 * Zharf recommends a good book on java Jul 17 08:55:13 (even though you can write int.class but that's another topic) Jul 17 08:55:42 yeah this turned into java for beginners class Jul 17 08:58:39 dont be a bitter betty Snuffel i know i can google it but since theres nothing going on in the channel i thought i'd incite a debate. ill keep my beginners questions to myself from now on though Jul 17 08:58:58 that would be great Jul 17 08:59:37 Belacan: it's hardly debate material :) Jul 17 08:59:42 Snuffel: no need to be rude Jul 17 08:59:56 was someone rude? Jul 17 09:00:17 alas, a debate! Jul 17 09:01:46 Prime numbers come to an end. Jul 17 09:02:16 lasserix: wat Jul 17 09:02:56 Just starting a debate... Jul 17 09:03:10 but its not really a debate, unless you're completely stupid Jul 17 09:03:23 proof you claim and good is Jul 17 09:03:39 hey, i'm calling startActivityForResult from activity A but when activity B finishes, activity A's onCreate is called instead of onActivityResult, any idea what i'm doing wrong? Jul 17 09:04:55 How do you know there isn't a way to embed the set of reals is some mathematical space where in fact it can be shown there is a terminal prime number, as the set of composities after it is an infinite sequence? Jul 17 09:05:31 because numbers are infinite ergo, prime numbers are infinate Jul 17 09:05:58 hyotam: don't forget to set your result when back button is pressed, that's probably your case Jul 17 09:06:19 a better debate is: "there are more grains of sand on the earth than there are stars in the universe" Jul 17 09:06:22 what he said ^ Jul 17 09:06:29 i think i am doing that, but i will make sure Jul 17 09:07:28 It depends on how you count. Jul 17 09:08:03 counting only with prime numbers Jul 17 09:08:40 it doesn't matter, numbers are infinate Jul 17 09:09:46 I'm not saying they're not I'm just questioning the idea of how you can count infinity Jul 17 09:09:58 you cant Jul 17 09:10:07 because its infinity, it just goes on Jul 17 09:11:02 Doesn't mean you can't count it Jul 17 09:11:12 it does? Jul 17 09:11:30 In fact I believe it's been shown the set of rationals is smaller than the set of reals even though both are infinite Jul 17 09:11:50 lasserix, yep Jul 17 09:12:04 interesting Jul 17 09:12:14 what did you study at university lasserix? Jul 17 09:12:18 rationals are countable infinity, reals not Jul 17 09:13:04 Belacan: everything from viticulture to number theory Jul 17 09:13:09 *infinite Jul 17 09:13:28 thanks for clarifying EPG Jul 17 09:13:54 CallumTaylor: looks like you chose the wrong guy to have a debate on number theory with Jul 17 09:14:08 Belacan: lol Jul 17 09:18:45 Anyone know which version of opengl opengl es 2.0 is equivalent too? Jul 17 09:19:59 i don't think it has any equivalent Jul 17 09:20:02 so it seems even though i call startActivityForResult, my Activity is destroyed. any way to prevent that? Jul 17 09:22:51 never mind, my fault... Jul 17 09:22:54 :D Jul 17 09:26:16 what was wrong hyotam Jul 17 09:27:52 i had this app called SetAlwaysFinish to help me debug onRestoreInstanceState. really cool app btw Jul 17 09:28:17 and it was on so the activity was forced to be destroyed Jul 17 09:28:46 rookie mistake Jul 17 09:29:14 yup Jul 17 09:30:36 Hi Jul 17 09:30:49 hyotam: got it :P Jul 17 09:30:54 :) Jul 17 09:31:54 Ive just started with cocos2dx and was wondering how can i implement a multiplayer game ? (fast/easy) its a very simple game, tic tac toe kind of simple. any ideas on how to approach multiplayer ? Jul 17 09:32:02 is there any way in eclipse to customise the code sense suggestions when you tab through ctrl+spave? Jul 17 09:32:31 i bet there is Jul 17 09:33:16 umm Jul 17 09:33:20 1 sec Jul 17 09:33:49 i think i might have found a way.. Jul 17 09:34:36 damn, theres no way for it to set it to only show members in that class rather than all of the superclasses aswell Jul 17 09:35:21 Window>preferences>editor>content Assist> advanced? Jul 17 09:35:40 yeah, theres no way to set it to only show members in the class you're looking at :( Jul 17 09:35:53 i want to see only methods in say view pager, not view pager, view group and view Jul 17 09:52:25 elegant way of animating view.visible/view.gone? Jul 17 09:53:36 AlphaAnimation Jul 17 09:53:44 setFillAfter(true) Jul 17 09:54:18 then use the animation listener to catch when it ends, then set visibility.gone Jul 17 10:00:04 that could work CallumTaylor but what if the views i'm animating are in between two views? there's still that ugly 'pop' as the sandwiched views are set to visible/gone Jul 17 10:09:26 Geez, Flurry's error reporting is useless. Jul 17 10:09:45 In serious need of http://imgur.com/jacoj STOGTFO Jul 17 10:10:31 any recomendations on how to implement a multiplayer game on android ? im using cocos2dx Jul 17 10:10:58 any api out there which doesnt make me go through their login and all that ? Jul 17 10:11:24 Hm maybe parse.com? Jul 17 10:13:23 bye Jul 17 10:15:03 stork: hm not sure Jul 17 10:17:05 is there any way to connect to device's sqlite db using adb? Jul 17 10:17:30 here to mention, i dont have root permission Jul 17 10:17:34 thnx ill give parse a look Jul 17 10:18:16 jahid: i guess not Jul 17 10:18:18 http://stackoverflow.com/questions/4859528/is-there-any-way-to-read-the-mobile-sqlite-database-in-remote Jul 17 10:18:55 Snuffel, thanks Jul 17 10:19:17 i googled that by the way Jul 17 10:19:26 which is easy to learn Jul 17 10:19:27 ok Jul 17 10:41:31 hey guys. Jul 17 10:45:40 is it guaranteed that onResume is always called at least once before the content view of an app becomes visible? Jul 17 10:47:14 l Jul 17 10:47:17 hello Jul 17 10:47:38 hey Jul 17 10:47:42 tapas i don't know about the content but i think it's garuanteed that onResume gets called (unlike onStop() etc.) Jul 17 10:47:44 does someone already use phonegap?why my app is killed when i lock and unlock the screen? Jul 17 10:48:07 plazi91 ... what do you do in onResume() or similiar? Jul 17 10:49:01 onResume and onPause only super.onresume or super.onpause Jul 17 10:49:28 Doesn't phonegap emit stacktraces? Jul 17 10:50:16 Short of killing Eclipse, how am I supposed to exit this manager? It's a modal window without a titlebar, here's a screenshot: http://i.imgur.com/dHuSO.png There is no 'quit' or 'exit' in the menu. Jul 17 10:50:20 ok, onResume is called in general after the activity becoming visible to the user.. Jul 17 10:50:30 the docs are a bit unclear.. Jul 17 10:50:35 voidz0r: does alt+f4 work? Jul 17 10:50:53 XD Jul 17 10:51:21 tapas: yes and? Jul 17 10:51:23 voidz0r: that's your window manager messing up, normally it does have widgets. Jul 17 10:51:41 plazi91: so i ask.. ;D Jul 17 10:51:45 Gnome Shell for some reason does not give a close button to modal dialog windows :/ Jul 17 10:51:46 Thanks a billion, I'll go home to be ashamed of myself. Jul 17 10:51:55 :D Jul 17 10:52:44 HDroid: I'll check mutter for bug reports, thanks. Jul 17 10:53:22 does someone already use phonegap?why my app is killed when i lock and unlock the screen? Jul 17 10:57:15 hi, I've got a problem, I've successfully implemented SimpleCursorAdapter like it says here: http://thinkandroid.wordpress.com/2010/01/09/simplecursoradapters-and-listviews/ , but the problem is that I have multiple foreign keys in the table that is used with simpleadapter Jul 17 10:57:39 can I program simpleadapter so it will pul the information from different tables pointing to by foreign keys Jul 17 10:57:57 so a simpleadapter should grab the data from multiple tables to get one view ? Jul 17 10:58:06 any ideas how this can be done ? Jul 17 10:58:49 hmm, it seems to maybe be safe to assume that onWindowFocusChanged is called only after onCreate() has been called.. Jul 17 10:59:09 does someone already use phonegap?why my app is killed when i lock and unlock the screen? Jul 17 10:59:16 the doc says: "you should not rely on any particular order between the callbacks here and those in the other lifecycle methods such as onResume()" Jul 17 10:59:30 does anyone know off the top of their head, the height in DP of the action bar? Jul 17 11:00:49 CallumTaylor: 45? Jul 17 11:01:00 lol is that a question or an answer Jul 17 11:01:02 or is 48? Jul 17 11:01:15 i have no idea >.< Jul 17 11:01:52 42, definately Jul 17 11:02:06 ok thanks Jul 17 11:02:18 ah Jul 17 11:02:22 45dp Jul 17 11:02:23 didnt read your question, sorry. Jul 17 11:02:31 42 is always one right answer Jul 17 11:02:41 I'm close enough Jul 17 11:02:44 it'll do :) Jul 17 11:03:11 @dimen/actionbar_compat_height -> 45dp Jul 17 11:03:23 thanks Jul 17 11:03:40 blaa... has anyone worked with AIDE and dropbox sync with eclipse android projects? Jul 17 11:03:52 ah damn, i wrote my own custom title bar ages ago for 2.2, i force the height to 46dp :P Jul 17 11:03:53 so close Jul 17 11:04:24 CallumTaylor: was same with us, but on this week we moved to abs Jul 17 11:04:50 yeah me too, but I'm trying to centre the title text and its not working so for this one view I'm just using my old one Jul 17 11:05:02 the new app I'm building with fragments and ABS is soooooo nice Jul 17 11:05:45 in this moment i also work on actionbar customview for add opened document title :) Jul 17 11:06:18 yeah i tried that but i still couldn't get the text centred :/ Jul 17 11:06:30 there was also a flicker where it jumped from the standard layout to my custom Jul 17 11:06:48 does someone already use phonegap?why my app is killed when i lock and unlock the screen? Jul 17 11:07:03 >phonegap Jul 17 11:07:05 there's your problem Jul 17 11:07:19 plazi91: maybe ur device dont have enough memory for keep it in? Jul 17 11:07:28 plazi91: most likely androids memory management Jul 17 11:07:53 plazi91: Your app has to work with the fact that it could end every minute when its in the background Jul 17 11:08:31 web views use a lot of memory Jul 17 11:08:35 CallumTaylor: the dp for the actionbar is different based on the device Jul 17 11:08:39 and i mean, a lot Jul 17 11:08:52 bryanl: yeah i know Jul 17 11:09:50 bryanl: different _dp_ for other devices? Jul 17 11:10:18 CallumTaylor, ixc: https://gist.github.com/3128785 Jul 17 11:10:19 yup Jul 17 11:10:42 oh thanks Jul 17 11:10:50 actually just 3: default, land, and sw600 Jul 17 11:10:53 it doesn't need to be perfect, I'm only using my custom title for a tutorial screen Jul 17 11:11:07 it's something i wanted to look up anyways Jul 17 11:11:14 thanks anyway :) Jul 17 11:25:10 hello i have a sgs one with a custom gingerbread rom unfortunatly i have the problem that the battery is very fast empty also i have much more bad network than before can someone give me a tip for a rom which had long battery life AND a good data/network mycurrent system is based on xxjvt modem and semaphore jvz 2.1.1 kernel the rom is galaxyblue Jul 17 11:26:49 anybody there ???? Jul 17 11:27:09 i think you're in the wrong channel Jul 17 11:28:39 yes sorry for that i try the other rooms but i get no answer there i ask here because you are devs which create such roms i know that im wrong here Jul 17 11:29:00 this is more android app dev rather than rom dev Jul 17 11:29:12 idk if there's anyone here that would be able to help Jul 17 11:29:48 ok thanks Jul 17 11:31:45 does anyone know if ActionBarSherlock tabs are backcompatible with the old TabActivity Tabs ? Jul 17 11:32:27 not exactly, but you should be able to rejig it to make it work Jul 17 11:32:50 sec, ill upload an example of my app using tabs Jul 17 11:33:21 CallumTaylor: cool ;) Jul 17 11:33:46 what i'm worried is about the styling and background and items with their states Jul 17 11:34:07 it's already been a mess to get +or- right Jul 17 11:34:22 https://gist.github.com/3128925 Jul 17 11:34:33 this uses view pager for the tabs Jul 17 11:34:45 i use setTabs to set the tabs Jul 17 11:36:14 the code won't work if you copy paste obviously, but it should help you see whats going on Jul 17 11:59:39 ok, is there any layout that guarantees to allow views to have size greater than the layout itself? Jul 17 12:00:35 is anyone good with home screen widgets? i want to create one to do a very specific job and I need someone to talk it through with Jul 17 12:01:17 afk a few mins Jul 17 12:02:22 Aicasn: just ask your question Jul 17 12:02:34 does someone already use phonegap?why my app is killed when i lock and unlock the screen? Jul 17 12:02:59 plazi91: u didnt got answer before? memory issues? Jul 17 12:07:07 ixc: what memory issues? Jul 17 12:07:39 plazi91: start by looking at the logs... Jul 17 12:08:34 btw: is is possible to get logcat to output the logging output from all attached devices? Jul 17 12:09:18 plazi91: web views use a lot of memory Jul 17 12:09:29 they might be causing your app to be destroyed in the background Jul 17 12:09:51 and how i can fix it? Jul 17 12:10:01 add more memory Jul 17 12:10:07 tapas: u can add -d to adb for setup device; so u can write a script for make one output Jul 17 12:10:13 or stop using crappy framework Jul 17 12:10:36 Teehee "download our app now and receive a free DDR3 memory module and a soldering kit" Jul 17 12:11:18 ivru: logs say me fimgapistretch: stretch failed but i don't know what it is Jul 17 12:12:09 plazi91: do you have access to the layout ? Jul 17 12:12:54 ivru: no because app is killed Jul 17 12:13:11 phonegap doesn't generate any layout ? Jul 17 12:13:29 phone gap uses webviews Jul 17 12:13:42 yeah but the webview must be included in a layout Jul 17 12:13:53 i guess its just a framelayout Jul 17 12:13:59 like a standard empty viewgroup Jul 17 12:14:00 i launch my app, after that i lock and unlock the screen and app is killed and not go to foreground Jul 17 12:14:07 like any other applications Jul 17 12:14:16 ok, i give up Jul 17 12:14:30 ivru: lol Jul 17 12:14:51 I try to help but you didn't answer my question Jul 17 12:16:05 ivru: because i don't know why you ask me that Jul 17 12:16:50 because I've googled, and the first result talks about fill_parent instead of match_parent Jul 17 12:16:52 my problem is : when i unlock the screen with my app launched, the app is killing Jul 17 12:17:10 but as I said before, I gave up Jul 17 12:17:15 have fun Jul 17 12:17:20 yes but i'm using phonegap so there is only loadurl Jul 17 12:17:27 it's not an activity Jul 17 12:17:32 it's a droidgap Jul 17 12:17:50 it's why i asked who used phonegap Jul 17 12:18:00 but ty for your help Jul 17 12:22:36 offline maps usage Jul 17 12:22:39 any advices > Jul 17 12:22:42 ? Jul 17 12:25:49 so nobody on #android-root to help me root my SGS2. If anybody feels like helping me, please send a private message Jul 17 12:26:45 lol, is "CallApp" out of the playstore? Jul 17 12:27:59 lol whut Jul 17 12:30:21 luyang: xda didn't help? Jul 17 12:30:39 wongk: wongk: no Jul 17 12:30:48 that's very surprising Jul 17 12:31:23 isee 2 different S II forums Jul 17 12:32:54 wongk: most instructions are for windows Jul 17 12:33:12 platform shouldn't be relevant Jul 17 12:34:18 wongk: what about running ./psneuter on the device? Jul 17 12:35:05 what does that have to do with the platform on your PC? Jul 17 12:35:22 Ivru: sure thing. i have a basic understanding of the various pieces that make up an android app. what I need to understand is how they go together to accomplish my task. i want to make a home screen widget with a progress bar for battery charge (0 to 100%) Jul 17 12:35:44 Ivru: i'm getting thrown off by the fact that home screen widgets don't seem to have a main activity like normal apps do Jul 17 12:36:21 Ivru: i _think_ i need two receivers.... one for the view to receive update broadcasts, and one to watch for battery change broadcasts Jul 17 12:36:22 Aicasn: widgets have an optional configuration activity, that's it Jul 17 12:36:28 wongk: I prefer doing the rooting on Mac rather than on PC Jul 17 12:36:42 luyang: 6 of one, half dozen of the other Jul 17 12:36:54 all irrelevant Jul 17 12:36:57 wongk: what? Jul 17 12:37:37 when you root, you push a few files to the phone... platform is irrelevant (at least with every device i've rooted) Jul 17 12:38:01 wongk: ok that is fine, so where can I find a tutorial which works for my sgs with 4.0.3 Jul 17 12:38:12 xda :P Jul 17 12:38:17 Ivru: but the "how to put it together" escapes me. 1) does the update broadcast only come as a result of the interval specified in the provider metadata xaml ("updatePeriodMillis") ? can it be triggered manually as-needed too (ie. when the battery change notification happens) ? Jul 17 12:38:21 wongk: url? Jul 17 12:38:26 or rootzwiki Jul 17 12:38:31 xda-developers.com Jul 17 12:38:38 that's not a direct link Jul 17 12:38:48 i'm not going to do your research for you bud Jul 17 12:38:55 you're useless Jul 17 12:39:08 another one for my ignore list Jul 17 12:39:29 Ivru: also, is the life of the receiver attached to the view guaranteed to last for the life of the view? can I instantiate the battery receiver from there? Jul 17 12:39:53 Ivru: etc etc. i have a lot of questions and I just need to talk it through with someone good with home screen widgets Jul 17 12:40:20 you can update your widgets whenever you want Jul 17 12:43:19 #android Jul 17 12:43:29 hmm, someone happen to know why svg-android doesn't work on androi 4.0.3? Jul 17 12:44:08 luyang: stop being lazy Jul 17 12:44:09 there's a comment on this page: http://code.google.com/p/svg-android/wiki/ReleaseNotes Jul 17 12:44:14 and that is our experience, too Jul 17 12:44:28 it works all right on all other versions, but on our test device with 4.0.3 it just renders nothing Jul 17 12:44:54 there's a cryptic message "Well, wrong: Just Drawables won't work Hardwareaccellerated..." Jul 17 12:44:55 CallumTaylor: I'm not lazy Jul 17 12:45:04 but i don't see quite what it's getting at.. Jul 17 12:45:13 lol i just read all of luyang's comments....thats super lazy Jul 17 12:45:13 you are, wongk told you where you can find a tutorial Jul 17 12:45:23 Lloir: no it's not Jul 17 12:45:27 has anyone published an app and realized a bug and republished a fix and then the apps didnt get approved for 3 days so far ? Jul 17 12:45:30 yes it really is Jul 17 12:45:44 I have been to xda Jul 17 12:45:54 then you would have found one Jul 17 12:45:58 ^ Jul 17 12:46:16 droidbuster: no, it usually only takes an hour or so Jul 17 12:46:26 there's no "approval" Jul 17 12:46:40 Aicasn: I think you need just one AppWidgetProvider Jul 17 12:46:44 wongk: hmmm so i should contact google or delete the apps entirely and redo them ? Jul 17 12:47:01 Aicasn: and just get the battery info in the onUpdate method of your provider Jul 17 12:47:10 droidbuster: contacting google, if you can even find out how, won't yield any results Jul 17 12:47:11 and then update the view of the widget Jul 17 12:47:32 Ivru: yes, but two receivers, right? AppWidgetProviders is a subclass of a BroadcastReceiver...then I need another that is registered to receive battery messages Jul 17 12:47:44 droidbuster: i'm not sure what the best course of action is, really Jul 17 12:48:15 luyang, here's something REALLY helpful http://forum.xda-developers.com/forumdisplay.php?f=1055 Jul 17 12:48:18 wongk: ok i will look into it .thank you also have you ever made an app that there are no errors in the app or logcat but the app wont export with a badge or icon i checked everywhere i could find to no avail Jul 17 12:48:24 90% of the leg work done Jul 17 12:48:37 Ivru: the onUpdate should be in response to the battery message. checking for changes in battery level onUpdate() is polling which is not good .... right? Jul 17 12:48:47 droidbuster: i don't know what i badge is, but no Jul 17 12:49:05 i was on the understanding a badge was the app icon Jul 17 12:49:25 Aicasn: I don't think you need to make a receiver for battery info. Maybe you can get the info just by calling a method Jul 17 12:49:28 never heard it called that, but OK =] Jul 17 12:50:12 Aicasn: if you cannot do this, then, yeah you'll need a second braodcastreceiver Jul 17 12:51:06 ok, disabling hardware acceleration for the view using setLayerType(View.LAYER_TYPE_SOFTWARE, null); Jul 17 12:51:10 didn't help Jul 17 12:51:12 hm, does a scroll view auto have a direct child if i instantiate it in code? Jul 17 12:51:27 oh, nevermind Jul 17 12:57:19 Ivru: how can I get the info without making a new receiver _and_ without polling for it? Jul 17 12:58:40 Aicasn: I don't know if you can. That's i told you maybe your widgetprovider.onUpdate can be enough Jul 17 13:12:49 does registerReceiver() block? Jul 17 13:13:24 ok, resizing the SurfaceView to be bigger than the screen, so as to fill the screen AND preserve the aspect ratio works great on ALL our devices except for this motorola defy Jul 17 13:13:37 it defies (pun) our attempts at resizing the surfaceview Jul 17 13:18:00 Generics are kind of tough, but once something is worked out, it REALLY makes coding and compiles go much smoother. Jul 17 13:18:06 :-D Jul 17 13:21:05 And using JUnit often during devel is a major boon, too! :-D Jul 17 13:22:05 ok, on the defy it dows work if the previewsize is bigger than the screen size ;d Jul 17 13:22:55 how long does it take normally for the play store to update your application package? i uploaded a new .apk couple off hours ago and it's still the old version when i check play store Jul 17 13:23:28 couple of hours Jul 17 13:24:13 kk Jul 17 13:24:34 someone knows about a bug or something like this? using actionbarsherlock on ICS so should use the default API actionbar, it's split ( so bottom bar ) and with 5 icons it doesn't show last one, it's like 'cut off' it only shows if I increase the dpi to 200 or something on my phone ( galaxy s2) Jul 17 13:33:04 You're messing with parameters in a custom rom, and wondering if it's a bug that it breaks? ^_^ Jul 17 13:44:16 is there a quick way to read the app log? i'd like to include a chunk of hte log file along with the crash report Jul 17 13:46:10 ACRA can do it, i'm an idiot Jul 17 13:47:58 My app is writing files to external storage (by creating a directory in Environment.getExternalStorageDirectory()) and then writing text files using a FileWriter. When I plug my device in via USB, the directory is visible, but the files are not. However, a file manager on the device can see the files fine. Refreshing/re-plugging has no effect. Any idea what's happening? Jul 17 13:48:20 tom___: if it's mounted it may not be available Jul 17 13:49:40 but the file does get written, and I can download using file explorer in eclipse, but when its mounted the in explorer its not visible? Jul 17 13:53:05 Naturally I want my LocationListener to be removed after onLocationChanged has occurred ( very simple example ). How do I get a reference to the LocationManager inside itself? The 'this' keyword doesn't refer to the activity class anymore! Jul 17 13:56:56 tom___: don't PM for fuck's sake Jul 17 13:57:15 lol Jul 17 13:57:26 this is pure hell Jul 17 13:57:44 for some devices surfaceviews can't scale, for some devices and preview sizes the preview frames are corrupted Jul 17 14:01:43 then we can't use the picture callback since we cannot establish a correspondence between pixels in the preview and the result picture.. Jul 17 14:01:51 so we have to take the preview frames.. Jul 17 14:04:59 quit Jul 17 14:05:11 i take that as a command ;D Jul 17 14:05:25 i should quit trying to do anything with the android camera... Jul 17 14:05:37 is there maybe JNI access to the hardware possible? Jul 17 14:06:00 tapas: devices each support different preview sizes, which are actually reported via getSupportedPreviewSizes or somesuch Jul 17 14:06:23 zinx: i know :D Jul 17 14:06:29 Is there a way of quitting the current activity and launch another at the same time? Effectively replacing the activity for another Jul 17 14:06:51 different strategies for selecting one of these preview sizes triggers different bugs in different devices and android versions Jul 17 14:07:03 tapas: there is no official access to the camera via JNI - the interface has been different in nearly every release so far, and is different on some devices even within a release. Jul 17 14:07:06 heisenmink: startActivity(new Intent(...)); finish(); Jul 17 14:08:24 there's one last thing i can try: use a preview size that leads to non corrupt frames in the preview callback.. Jul 17 14:08:31 and then render the frames to an imageview myself.. Jul 17 14:09:12 tapas: how are they corrupted? and are you using them during the callback? Jul 17 14:09:18 hi guys, I need to send some strings from inside the android to one one ip:port, is this possibel Jul 17 14:09:55 devish: no idea what you just asked Jul 17 14:09:59 me neither Jul 17 14:10:44 zinx: this is what i do: get the list of previewsizes from the camera parameters.. i select one according to different strategies (the largest, the smalles, the smallest still bigger then the display, the largest still smaller than the display, etc..) Jul 17 14:10:56 I'm parsing an incoming json stream that at times may be a fully qualified json object starting with {"foo": ...} and at times may be a simple array like this ["key", "value"] is there a way to determine, using the built in org.json tools if an incoming json stream is an object or an array without actually trying to build the object or array and thus throwing an error if it's not ? Jul 17 14:11:08 zinx: then in the preview callback i use the YuvImage to convert the byte array to a format that ImageView understands Jul 17 14:11:32 using the Rect(0,0, previewSize.width, previewSize.height) Jul 17 14:11:45 okay, there is one android application which has to send its data to a particular ip , there the server will identify it based on its id, which will be a part of request Jul 17 14:11:53 for different strategies, the resulting image is corrupt on different devices.. Jul 17 14:12:09 for some devices the preview frames are OK for all these strategies.. Jul 17 14:12:12 this was already developed in java, now i need to port it to android Jul 17 14:12:30 but for the motorola defy i need to select a size smaller than the display, otherwise the preview frames are corrupt Jul 17 14:12:43 tapas: right, but can you describe the corruption? Jul 17 14:12:49 for the htc desire i need to use a preview size larger then the display, otherwise the frames are corrupt Jul 17 14:12:52 etc.. Jul 17 14:13:08 what is corrupt Jul 17 14:13:09 i can make a screenshot :D Jul 17 14:13:10 is the question Jul 17 14:13:14 tapas: and where are you doing the conversion? inside the callback or outside? Jul 17 14:13:15 in java I have one comm jar which has all the classes and takes care of all communication Jul 17 14:13:24 zinx: inside the callback Jul 17 14:13:32 so the data should be current.. Jul 17 14:13:46 tapas: screenshot would be very helpful Jul 17 14:15:14 one moment. have to find the device that corrupts it with my current code ;D Jul 17 14:15:29 kk Jul 17 14:17:09 http://imgur.com/tPvWz Jul 17 14:17:13 this is on HTC desire for example Jul 17 14:17:53 with the strategy of choosing the smallest preview size that's still larger than the display in both dimensions Jul 17 14:18:06 it looks like clearly it's a stride issue Jul 17 14:18:11 looks like the wrong size, yeah Jul 17 14:18:17 i.e. the dimesions aren't set corretly in the decoder Jul 17 14:18:29 did you use getPreviewSize after you set it? Jul 17 14:18:49 i tried that at some point, too Jul 17 14:19:09 but then i read that some android versions had a bug with these functions, so one should treat the camera parameters essentially as write only ;D Jul 17 14:19:16 sigh Jul 17 14:19:28 actually: i do at the moment: Jul 17 14:19:29 .getPreviewSize().width, Jul 17 14:19:29 cam.getParameters().getPreviewSize().height), 80, baos); Jul 17 14:19:40 oops, sorry.. Jul 17 14:20:09 http://pastesite.com/39915 Jul 17 14:20:32 oh there's a discrepancy in my code.. Jul 17 14:20:39 i changed one of these, but not the other.. Jul 17 14:20:40 yeah there is Jul 17 14:22:09 still same behaviour on htc desire.. Jul 17 14:22:21 Hey guys! I'm using json-io (http://code.google.com/p/json-io/) for parsing a JSON object. I'm coverting the string to a Map. But how do I get an array back? For example { foo: [x, y] } Jul 17 14:23:00 http://pastesite.com/39916 Jul 17 14:23:16 let's switch over to the previewSize i determined instead of getting the params from the cam Jul 17 14:23:51 note to self: never pre-order from the google play store Jul 17 14:24:12 still the same corruption with HTC desire.. Jul 17 14:24:21 if i change to a different strategy for selecting the preview siz.. Jul 17 14:25:12 then the preview frame looks fine.. Jul 17 14:25:32 choosing the largest previwe size that's still smaller than the screen Jul 17 14:26:01 yeah it sounds like it's choosing that for you anyway Jul 17 14:26:05 the problem with that is though, that on the motorola defy SurfaceView doesn't honnour layout parameters.. or rather, it doesn't fill to the given size.. Jul 17 14:26:09 and not bothering to tell you Jul 17 14:26:47 zinx: yeah, that's a possibility Jul 17 14:27:22 if at all possible, i'd figure out how to get the Motorola Defy drawing itself right Jul 17 14:27:30 i guess the next time we'll hack something with camera functionality we'll get a list of devices from our client on which it should work.. Jul 17 14:27:32 conversion to jpeg and back is really inefficient Jul 17 14:28:07 we use the preview callback only for a "snapshot" since for the preview frame we can solve the correspondence problem to pixels in the preview surface Jul 17 14:28:27 [the user aligns an overlay and then snaps a photo.. we have to have the overlay in the photo at the exact same position] Jul 17 14:29:03 and yeah, i played with converting the frames manually for my little camsynth app (just an experimental toy) Jul 17 14:29:24 https://play.google.com/store/apps/details?id=io.fps.camsynth&feature=search_result#?t=W251bGwsMSwyLDEsImlvLmZwcy5jYW1zeW50aCJd Jul 17 14:29:45 tapas: are you using ndk/native code to do your manipulation ? Jul 17 14:29:55 where i actually do render evert previewframe (cause i need it anyways to drive the gains for the synthesis) Jul 17 14:30:22 kay-z: in camsynth: no, only the audio rendering part is in JNI Jul 17 14:31:17 btw: do i actually need a surface view for the camera preview to happen? Jul 17 14:31:22 \camera preview callback.. Jul 17 14:31:32 tapas: yes Jul 17 14:31:49 ok, too bad i can't get around that.. Jul 17 14:32:04 camera surface views are pretty easy to deal with though Jul 17 14:32:08 what's the issue ? Jul 17 14:32:29 oh just that different devices have all kinds of annoying bugs with the camera ;D Jul 17 14:32:41 tapas: there's a trick to it. Jul 17 14:32:47 on the motorola defy the SurfaceView doesn't honour layout parameters Jul 17 14:32:51 there's a call you can use to get the camera properties Jul 17 14:33:03 that you can pass into set properties Jul 17 14:33:19 ie: Cam.setProperties(Cam.getproperties()); Jul 17 14:33:39 it allows the device to define it's own camera setup Jul 17 14:34:07 kay-z: you mean getParameters and setParameters()? Jul 17 14:34:12 yep Jul 17 14:34:44 hmm, so you mean i shouldn't select a preview size from the supportedPreviewSizes() at all? Jul 17 14:34:52 this sounds like madness. Jul 17 14:34:52 I don't Jul 17 14:35:13 Madness ?.... THIS IS ANDROID!!!!!!! Jul 17 14:43:17 ok, i'll render all frames in software now.. Jul 17 14:43:48 since it's possible to get non corrupt preview frames on all devices if the preview size is smaller than the display size.. Jul 17 14:44:24 since with this strategy resizing the surface view doesn't work on all devices i'll render manually to an image view that can be resized.. Jul 17 14:44:34 this should give us ca. 90% device coverage Jul 17 14:47:54 tapas: how'd you learn to do the jni stuff? Jul 17 14:49:00 I have a small question about how to implement a solution. Basically, I have my own implementation of ImageView which is zoomable and pannable. Now I want to add ToggleButtons to it that will react with the transformation matrix of the parent. I am unsure what would be the best way, either Override the onDraw of my ImageView to draw children added or play with ViewGroups, anyone has a suggestion? Kinda new to android development. Jul 17 14:49:49 kay-z http://android.wooyd.org/JNIExample/files/JNIExample.pdf Jul 17 14:50:33 ok, maybe I don't need the preview frame at all to solve this problem.. Jul 17 14:51:21 let's say i have a PreviewSurface with some size and an image overlayed onto it.. Jul 17 14:51:38 now i use the camera callback to take a picture.. Jul 17 14:52:10 is there a way to position the image overlayed onto the preview on the snapped picture such that it covers the exact same features in the image? Jul 17 14:52:34 i.e. solve the pixel correspondence problem from the devices display and what's displayed in it to the snapped photo? Jul 17 14:56:05 or alternatively: is there any other way to have a Layout draw(Canvas c) itself into a canvas, so that the surfaceView's content is drawn, too? Jul 17 14:56:12 stupid question, is there a way to automatically give focus to an edit text field as soon as it's visible ? Jul 17 14:57:51 ok, ddms can take a screenshot.. Jul 17 14:57:57 maybe it's possible for an app, too.. Jul 17 15:01:28 kay-z: requestFocus() Jul 17 15:01:54 awesoime Jul 17 15:02:28 Why do I get the errors in the red? Photobucket Jul 17 15:02:38 http://i886.photobucket.com/albums/ac68/austrie/hitter.png Jul 17 15:03:01 kay-z do you listen too jay-z? Jul 17 15:03:12 yes Jul 17 15:04:07 AlCapwn: any idea how to bring up the keyboard when the focus is given ? Jul 17 15:04:16 kay-z: You know he's a masonist right? He's going to hell.... Jul 17 15:04:43 YoYo, remember. the first rule of christianity is to not talk about christianitity Jul 17 15:05:03 kay-z: use the IME service, get hold of it using context#getSystemService Jul 17 15:05:38 hmm, or is there a way to make View.draw(Canvas c) work for a SurfaceView with type SURFACE_TYPE_PUSH_BUFFERS? Jul 17 15:05:41 kay-z: What christianity you talking about? Jul 17 15:05:45 AlCapwn: i (mistakenly) thought it would pop up automatically when an EditText view was given focus Jul 17 15:06:04 French Montana Ft. Rick Ross, Drake & Lil Wayne – Pop That (Official Video) Jul 17 15:06:42 http://i886.photobucket.com/albums/ac68/austrie/hitter.png Jul 17 15:06:44 http://i886.photobucket.com/albums/ac68/austrie/hitter.png Jul 17 15:09:05 royale1223: Jul 17 15:10:04 YoYo: you do realize that the editor will tell you why you're getting those errors Jul 17 15:10:30 I need too override Jul 17 15:10:39 so override. Jul 17 15:10:41 That's what it tell me Jul 17 15:10:54 I already did, look at the dam picture Jul 17 15:11:23 It seems I might need too import a different menu class when using fragments Jul 17 15:11:59 the sherlock version is giving me errors Jul 17 15:12:11 do not curse at me. I don't owe you a thing and will not help rude people Jul 17 15:12:50 You're talking without looking at the picture.... Jul 17 15:13:01 And damn is not a curse word Jul 17 15:13:08 i wonder why the android SurfaceView API docs explicitly mention draw(Canvas c); when this does nothing for some types of surfaces Jul 17 15:13:11 hmm Jul 17 15:13:37 tapas: most surface views, I expect, are tied to GLES code Jul 17 15:14:49 and is there maybe some way to have it draw itself on a canvas nonetheless? Jul 17 15:15:15 not that i'm aware. Jul 17 15:15:42 tapas: i don't quite understand the issue you're having. I've got an app that relies on camera and surface views extensively without issue... Jul 17 15:16:02 kay-z: does it also use the data in the preview callback? Jul 17 15:16:21 use the data in the preview callback ? huh ? Jul 17 15:16:31 i figure, no :D Jul 17 15:16:38 what do you mean ? Jul 17 15:16:43 http://developer.android.com/reference/android/hardware/Camera.PreviewCallback.html Jul 17 15:17:00 especially: http://developer.android.com/reference/android/hardware/Camera.PreviewCallback.html#onPreviewFrame%28byte[],%20android.hardware.Camera%29 Jul 17 15:17:02 yep Jul 17 15:17:16 so you do use it? Jul 17 15:17:30 have you tested it on htc desire and motorola defy? :D Jul 17 15:17:36 not in the app I was just speaking of, but yes i've used it Jul 17 15:17:44 havne't had reports that it doesn't work Jul 17 15:18:35 kay-z: ok, what stratey do yu use to select the preview size from the supportedPreviewSizes? Jul 17 15:18:51 I don't select a preview size. Jul 17 15:19:05 hmm, ok.. Jul 17 15:19:22 that might be an option.. Jul 17 15:20:50 but then how do you ensure that the surfaceview keeps the correct aspect ratio?\ Jul 17 15:21:21 its size needs to be a multiple of the preview size in both dimensions as to not distort the preview image.. Jul 17 15:21:32 Anyone tried to do light pre-pass on tegra 3? Jul 17 15:21:40 [non integer multiple, mind you ;D just the same factor in both dimensions] Jul 17 15:22:15 i guess one can still call getPreviewSize() Jul 17 15:22:38 kay-z: What's your religion? Jul 17 15:23:29 YoYo: not here, please Jul 17 15:23:44 yoyo: i'm not allowed to talk about it, it's against my religion Jul 17 15:24:00 lol Jul 17 15:24:07 I know your religion Jul 17 15:24:23 Leeds: Okay Jul 17 15:25:48 Hello, I'm a little confused on how to support multiple SDKs with the android support package. Let's say I have minSdk:8 and targetSdk:15. On SDK15 devices, I would just use a regular Activity and use Activity.getFragmentManager(). On SDK8 devices however, I could need to extend FragmentActivity instead of a regular activity. Jul 17 15:26:30 666 is gonna die, not worth it. It's no point too program it into your app; it's going to be outdated. Jul 17 15:27:01 YoYo: are you high? Jul 17 15:27:23 psoulos: you can use FragmentActivity on SDK15 as well, I think Jul 17 15:29:14 SimonVT, you here mate? Jul 17 15:31:01 p_l|backup: If I use FragmentActivity.getSupportFragmentManager() on a SDK15 device, won't the returned object be a FragmentManager from the support package, not the native FragmentManager Jul 17 15:31:18 luxurymode: Im here Jul 17 15:31:40 psoulos: which should, iirc, call the native apis... usually Jul 17 15:32:04 good to know YoYo Jul 17 15:32:24 luxurymode: Do you want a kiss? Jul 17 15:32:38 no, but if you could shut up, that'd be nice Jul 17 15:33:24 luxurymode: Okay. When should I start talkingg again? Jul 17 15:33:40 p_l|backup: From the reference for Fragment in the support package: When running on Android 3.0 or above, this implementation is still used; it does not try to switch to the framework's implementation. Jul 17 15:34:16 psoulos: well, you can program two activities and switch between them based on platform version Jul 17 15:34:37 YoYo: never Jul 17 15:34:37 So I've got an app I'm making where I'm trying to move widgets around by my finger. I have that part working mostly. The widgets start in a SlidingDrawer. Once I touch them, they set their parents to the main layout that will hold everything the user's interacted with thus far. However, this has caused the drawer and sometimes other items I've put out there to readjust their position or Jul 17 15:34:37 size. What type of layout and settings should I use for this type of application? Jul 17 15:34:47 [11:34:15] psoulos: well, you can program two activities and switch between them based on platform version Jul 17 15:34:51 i only do that with preferences Jul 17 15:35:09 so i cant use a PreferenceFragment in the support lib Jul 17 15:35:25 p_l|backup: So I would need to maintain two files that serve the same purpose, one for pre 3.0 devices and one for post 3.0? That seems counter-intuitive to the purpose of the support package Jul 17 15:35:59 psoulos: see canadiancow|work response ^ Jul 17 15:36:50 is there any way to mark your own method as being "api level X+" Jul 17 15:36:57 so lint will tell you if you're calling it from a bad place? Jul 17 15:37:10 CallumTaylor: iS FOREVER DONE YET?? Jul 17 15:37:31 YoYo: drop it Jul 17 15:37:44 Leeds: Okay. Jul 17 15:38:08 private static class TerribleFailure extends Exception Jul 17 15:38:09 oh android Jul 17 15:38:16 hahaha Jul 17 15:38:21 is that part of the SDK? Jul 17 15:38:42 its a private static class inside android.util.Log Jul 17 15:38:49 hahaha Jul 17 15:38:51 I don't understand candiancow|work's answer. PreferenceFragment is not available in the support lib so he does not have any choice Jul 17 15:38:54 i knew what Log.wtf was for, i just didnt realize it was implemented that way Jul 17 15:38:54 canadiancow|work: VB.NET compiler apparently has SHEEITException Jul 17 15:38:58 psoulos: exactly Jul 17 15:39:06 and that's the only reason you'd do it that wya Jul 17 15:39:15 everywhere else, just use a support fragment in a support activity Jul 17 15:39:43 but on 3.0 devices, won't I want to use a native fragment instead of a support fragment Jul 17 15:40:07 no Jul 17 15:41:22 why is it my class array gets treated as an "object" when i pass it over bundle rather than class[] Jul 17 15:41:24 annoying Jul 17 15:41:28 Has anyone used Parse with Android? Jul 17 15:42:10 CallumTaylor: so bundle can take an array of any type? Jul 17 15:42:35 well i have a class "DisasterPoint" when i pass a single object, it returns as DisasterPoint, if i send an array of DisasterPoints Jul 17 15:42:40 it gets treated as an "object" Jul 17 15:42:45 and it won't cast back to an array Jul 17 15:43:04 weird… i'll just have to use collection instead Jul 17 15:43:15 That is strange Jul 17 15:43:22 yup Jul 17 15:43:50 canadiancow|work: I thought the purpose of the support library was to use newer libraries on old devices, while new devices would use the newer API. Jul 17 15:44:04 no Jul 17 15:44:06 well Jul 17 15:44:08 not for fragments Jul 17 15:44:16 at least not yet? Jul 17 15:44:30 NotificationCompat is just a wrapper around native implementations Jul 17 15:44:37 but Fragment/FragmentActivity are full implementations Jul 17 15:45:36 What happens if you uninstall all home screens? Jul 17 15:46:23 Will you still be able to run programs from settings, since settings can be launched from the icecream bar automatically? Jul 17 15:47:28 In other words, the bar at the bottom of the tablet is there no matter what, and it has a "launch settings" button. So if there is no home launcher installed on the tablet, it seems like the tablet would still be usable... wouldn't it? Jul 17 15:47:32 how can I have an an android:windowBackground on an activity that isn't stretched to fill that activity Jul 17 15:47:48 ie, that's displayed with the correct aspect ratio Jul 17 15:47:49 kay-z: interesting: not manyally setting any preview size does indeed work for most devices.. Jul 17 15:48:08 except for the motorola defy which does very weird things and generally seems to be buggy as hell Jul 17 15:48:24 [listviews sometimes snap to the top if they reach the bottom, and other funky stuff] Jul 17 15:48:33 so we'll not care about that.\ Jul 17 15:49:08 I am wondering, is hades generally a buggy place? Like, do the eternal torture scenarios occasionally segfault or run out of memory? Jul 17 15:51:16 So still slightly new to Java. If I have an interface defined in a class for callbacks, how do I define a function such that it's known by the class that executes the callbacks but is NOT required to be overridden? Jul 17 15:52:59 Jouva u have a function in ur class where you write to a local interface variable, then you have a function like "setListener" where you pass a interface defined outside the class and then you set the interal interface variable to the one passed by the outside class. Jul 17 15:53:01 with an expandablelistview how can i define a container layout? Jul 17 15:53:21 Jug6ernaut: Oh I know how callbacks work Jul 17 15:54:02 so what are u asking? lol Jul 17 15:55:15 suck a nigger dick for truck fat Jul 17 15:55:16 Jug6ernaut: My question was, what if I want a callback function that can be called by the class which holds the interface, but isn't one that is REQUIRED to be defined? Jul 17 15:55:59 thank fuck he's gone Jul 17 15:56:03 Jouva just use a regular function, and override it if needed Jul 17 15:56:36 Jug6ernaut: I don't think you're following what I'm asking or you're not explaining it right, but thanks anyway Jul 17 15:56:47 lol Jul 17 15:57:59 Ok, perfect example: GestureDetector.SimpleOnGestureListener Jul 17 15:58:14 Oh wait that's not an interface Jul 17 15:58:50 have the class inherit from a superclass w/ the (possibly) desired method ? Jul 17 15:59:13 well if you implement a interface, it MUST be defined. But you can write a function in the class that you are passing the interface to. this class you can use as a listener, but to listen to you have to overwrite it. if you dont want to listen to it dont override it Jul 17 16:15:16 http://www.youtube.com/watch?v=Xk_XaJ7gE4Q Jul 17 16:25:03 echo Jul 17 16:25:14 echo is on Jul 17 16:26:36 echo echo echo.... Jul 17 16:26:53 * Jug6ernaut had a phone interview today Jul 17 16:27:02 with whom? Jul 17 16:27:03 ooh who with? Jul 17 16:27:12 Jug6ernaut: which company? Jul 17 16:27:14 i didnt know what a "generic" class was :\ little did i know i use them all the time xD Jul 17 16:27:15 phone interviews are so stupid imo Jul 17 16:27:16 accenture Jul 17 16:27:27 CallumTaylor i've had good ones Jul 17 16:27:30 what role? android dev? Jul 17 16:27:31 CallumTaylor: depends how they are done Jul 17 16:27:34 although they also involved a shared development environment Jul 17 16:27:35 I liked the Google ones Jul 17 16:27:39 +1 Jul 17 16:27:41 yeah but they don't get to know you as a person over the phone Jul 17 16:27:42 its silly Jul 17 16:27:53 CallumTaylor, so if you know what you're doing, they fly you down... Jul 17 16:28:03 CallumTaylor hopefully, its as a generall java developer, but it looks like i may be doing android work(hopefully) Jul 17 16:28:04 oh for a remote place Jul 17 16:28:12 fair enough Jul 17 16:28:14 but theyre not going to spend all that time/money to bring you in if you could be some dumbass :P Jul 17 16:28:19 i got a job offer for a company in germany once Jul 17 16:28:28 Jug6ernaut: i choked up on a phone interview once Jul 17 16:28:30 this one was...kinda stupid, just asked general java questions...easy for anyone who has done any extensive java work Jul 17 16:28:35 heh Jul 17 16:28:42 Jug6ernaut ask Jul 17 16:28:48 "so what is an interface?" erm, 2 secs *googles* Jul 17 16:28:49 my software engineering prof didnt know what generics were Jul 17 16:28:52 LOL Jul 17 16:29:00 xD Jul 17 16:29:01 lol Jul 17 16:29:01 thats a tough question Jul 17 16:29:08 because they could be looking for a wide variety of answers Jul 17 16:29:13 CallumTaylor haha i could have, but i didnt need to Jul 17 16:29:30 hardest question was the first, "what are the three main principles of OOP" Jul 17 16:29:31 ever heard of wanderlust? Jul 17 16:29:33 like wf Jul 17 16:29:35 wtf* Jul 17 16:29:35 wunderlist* Jul 17 16:29:38 three...main.... lawl Jul 17 16:29:41 i wouldnt know those Jul 17 16:29:45 right? Jul 17 16:29:46 object, orientated and programming Jul 17 16:29:49 i might be able to guess my way through one or two Jul 17 16:29:49 lmao Jul 17 16:29:52 +1 Jul 17 16:29:54 yea Jul 17 16:29:59 WELL. FIRST. YOU USE OBJECTS. Jul 17 16:30:04 i mean u use them EVERY DAY but knowing them off hand? Jul 17 16:30:09 SECOND. YOU NEED TO...ORIENT YOURSELF...THE RIGHT WAY Jul 17 16:30:13 WITH OOP THERE ARE THINGS LIKE OBJECTS WHICH YOU CAN LIKE CALL METHODS ON Jul 17 16:30:16 was it the encapsulation, abstraction and stuff? Jul 17 16:30:29 and polymorphism Jul 17 16:30:33 i'm still doing that in every computer course Jul 17 16:30:33 yea Jul 17 16:30:38 lol Jul 17 16:30:38 :( Jul 17 16:30:41 the first google result for "three principles of oop" is "4 major principles of OOP" Jul 17 16:30:46 the three main principles are object, orientation and programming Jul 17 16:30:46 lmao Jul 17 16:31:03 and you all know what happens when you search for 'recursion', right? Jul 17 16:31:11 i had to write some questions for job interviews where i work, was fun http://cl.ly/0I2y2v3z1I2T Jul 17 16:31:12 yes ;) Jul 17 16:31:51 lol ignore the php and sql at the bottom Jul 17 16:32:03 i was demoing how to prevent sql injections to a colleague Jul 17 16:32:17 i actually had sql questions Jul 17 16:32:23 knew most of them pretty well Jul 17 16:32:31 most of thos questions are harder then what i was asked lol Jul 17 16:32:49 but seriously Jul 17 16:32:53 java isnt that complicated Jul 17 16:33:04 mhm Jul 17 16:33:09 CallumTaylor: those are "hard" questions? Jul 17 16:33:13 xD Jul 17 16:33:15 well Jul 17 16:33:19 yeah it was pretty tought Jul 17 16:33:23 tough Jul 17 16:33:26 to write decent questions Jul 17 16:33:34 lol Jul 17 16:33:37 i have a friend who I'm trying to get a job here, but he doesn't know java Jul 17 16:33:38 they're mostly trivia questions Jul 17 16:33:44 so he;s been told to go learn java over 3 weeks Jul 17 16:33:45 the algorithm would be the only thing that would take some time Jul 17 16:33:49 you don't know Jack Jul 17 16:33:51 then we'll give him my questions to answer Jul 17 16:33:56 CallumTaylor are you allowed to share that Jul 17 16:33:57 Write a loop from 0-10 using a while Jul 17 16:33:58 i hate to say this, but those are horrible horrible horrible questions Jul 17 16:33:58 LOL Jul 17 16:33:59 so i wanted them to be sorta straight forward enough to land him a job Jul 17 16:33:59 WHAT THE FUCK Jul 17 16:34:07 lol Jul 17 16:34:09 What is a template and how are they used with collections such as ArrayList/Vector? Jul 17 16:34:12 is that.. generic? Jul 17 16:34:15 yah Jul 17 16:34:19 arraylist Jul 17 16:34:21 isn't "template" more of a c concept Jul 17 16:34:21 etc Jul 17 16:34:26 yea i had never heard "templete" b4 Jul 17 16:34:26 can i create android app on android device rather than on my pc? Jul 17 16:34:28 CallumTaylor: i pray for the future of your company Jul 17 16:34:41 funktronic: and whys that Jul 17 16:34:43 Create a String ArrayList Jul 17 16:34:45 are you kidding me? Jul 17 16:34:45 wp-developer you can, but its a waste of time Jul 17 16:34:50 haha Jul 17 16:34:56 CallumTaylor: well if that's what you ask your developers you're gonna get shit devs Jul 17 16:34:59 List list = new ArrayList(); Jul 17 16:35:02 is that the answer they wanted? Jul 17 16:35:06 Jug6ernaut is it hard? Jul 17 16:35:08 nah, its to make sure my friend will land a job Jul 17 16:35:19 they're not supposed to be super hard Jul 17 16:35:20 wp-developer no, if u have a kb it works decently well Jul 17 16:35:29 just enough to make sure people know what they're talking about Jul 17 16:35:43 CallumTaylor: they're horrible for that Jul 17 16:35:44 4) You have a variable which instantiates a class which extends ArrayList, how would we check to make sure that ArrayList is it's final super class? Jul 17 16:35:44 we have a question "write a loop in any language" and some one actually wrote "loop = true" Jul 17 16:35:48 i dont even understand that question Jul 17 16:35:51 Jug6ernaut its a samsung galaxy tablet Jul 17 16:35:58 also s/it's/its/ Jul 17 16:36:09 wp-developer i wouldnt Jul 17 16:36:09 instanceof Jul 17 16:36:19 ? Jul 17 16:36:22 what are you asking though Jul 17 16:36:25 Jug6ernaut what tools i need to download on tablet to work on the tablet Jul 17 16:36:28 what is a "final super class" Jul 17 16:36:33 the "final" super class is Object Jul 17 16:36:36 superduper? Jul 17 16:36:56 i couldn't phrase it well, but need to make sure they understand the concept of subclassing and checking etc Jul 17 16:37:04 its not final its only a draft Jul 17 16:37:07 wp-developer idk sry, its been a good while since i looked into it. Jul 17 16:37:09 Jug6ernaut i dont have access to pc Jul 17 16:37:30 What's the difference between public, protected and private modifiers? <-- probably the hardest technical question there Jul 17 16:37:30 CallumTaylor: a proper "hard" question would be to implement selecting 100000th smallest number from 1000000000 numbers spread out over 5000 machines Jul 17 16:37:45 although you might want to add "package-private" to that Jul 17 16:37:50 anybody know what tools i need to download to create android app on android device rather than on windows pc Jul 17 16:37:53 even that's not *that* hard Jul 17 16:38:02 wp-developer: a keyboard would be handy Jul 17 16:38:05 its not supposed to be super hard Jul 17 16:38:26 its just enough to make sure the person actually knows the basics on the language Jul 17 16:38:27 funktronic i have keyboard for tab Jul 17 16:38:40 CallumTaylor: i personally wouldn't care if they knew java or not Jul 17 16:38:41 like i said, we had an interview where someone wrote "loop = true" for "write a loop in any language" Jul 17 16:38:58 lol Jul 17 16:39:01 thats why you have phone interviews :) Jul 17 16:39:04 anybody know what tools i need to download to create android app on android device rather than on windows pc Jul 17 16:39:04 funktronic: kinda important if we're hiring android developers Jul 17 16:39:06 before flying them in Jul 17 16:39:27 CallumTaylor: i didn't know java when i started writing andriod apps.. 3 weeks ago Jul 17 16:39:29 i know the guy we're trying to hire, he's a friend of mine, a php developer but only knows very basic java Jul 17 16:39:43 CallumTaylor: java took the grand total of 4 days to pick up Jul 17 16:39:49 for(;;){System.out.println("ooooooooooooooo yeaaaaaaaaaaaaa");} Jul 17 16:40:02 yeah its not hard which is why we asked him to go learn it in the next couple weeks Jul 17 16:40:07 java Jul 17 16:40:08 is Jul 17 16:40:08 easy Jul 17 16:40:10 mmk? Jul 17 16:40:14 yes Jul 17 16:40:15 i Jul 17 16:40:16 know Jul 17 16:40:16 wp-developer: grab this https://play.google.com/store/apps/details?id=com.aide.ui Jul 17 16:40:19 CallumTaylor: you're not testing if someone is smart, you're testing how well they memorize shit Jul 17 16:40:19 lol Jul 17 16:40:32 lwcoder anything else ? Jul 17 16:40:34 hey if it was up to me i would hire him right now Jul 17 16:40:35 funktronic not nessesarly Jul 17 16:40:45 but that's not how my boss works, he needs to know that you at least know the basics Jul 17 16:40:54 its not the questions even if they are hard or easy, its how they answer them Jul 17 16:41:02 CallumTaylor: you shouldn't be invovled at all in the hiring process of your friend Jul 17 16:41:08 he's investing a lot in taking on someone full time straight away Jul 17 16:41:21 becausee they could just lie that they know java when in fact they know nothing about any language Jul 17 16:41:34 CallumTaylor: and how will hiring someone who's not qualified help anyone? Jul 17 16:41:41 funktronic: why not, i want him to join the team, i was the one who went to him about a job Jul 17 16:41:43 not the other way Jul 17 16:42:24 wp-developer: you don't need anything else. I haven't looked into alternatives as AIDE does everything I have need it to Jul 17 16:42:58 wow lwcoder Jul 17 16:43:09 thanks a ton lwcoder Jul 17 16:43:25 wp-developer no worries, good luck Jul 17 16:44:27 * Jug6ernaut thinks u should worry Jul 17 16:44:33 normally we hire part time, and if it turns out they suck we don't take them on, but because he wants to go straight full time, its more of a risk, that's why we've asked him to learn as much java in the next 2 weeks, then we'll do a little test to make sure he is capable Jul 17 16:44:45 what other questions did you say were shit? Jul 17 16:45:13 * Jug6ernaut says its again, its not whether a question is hard/easy, its how they answer Jul 17 16:45:32 yeah i know, but some of the questions can be written better like q 4 in hard Jul 17 16:45:35 & if thats not the case, then i blame canadiancow|work Jul 17 16:45:39 wat Jul 17 16:45:43 I've rewritten to "4) You have a variable which instantiates a class which extends ArrayList, how would we check to see if its a subclass of ArrayList?" Jul 17 16:46:15 I blame JakeWharton - it's more convenient Jul 17 16:46:17 but even there... Jul 17 16:46:22 i dont like the question Jul 17 16:46:24 god damn it JakeWharton Jul 17 16:46:26 now the answer is obviously "instanceof" Jul 17 16:46:26 the times where you use instanceof in java are very slim, i do every once in a while tho... Jul 17 16:46:38 but you "check it" by storing it as an ArrayList Jul 17 16:46:39 what would you say instead Jul 17 16:47:00 i use instanceof all the time Jul 17 16:47:01 that sounds like you're going to have Object x = new MyArrayList(); if (x instanceof ArrayList) ... Jul 17 16:48:05 i use it for activity.getParent() instanceof MyMainActivity Jul 17 16:48:09 etc Jul 17 16:48:18 it is useful to know Jul 17 16:48:20 sounds like you're doing it wrong Jul 17 16:48:24 lol Jul 17 16:48:27 you're not writing generic code Jul 17 16:49:25 exactly Jul 17 16:49:39 in MOST instances, it's usually just the lazy way of doing things Jul 17 16:49:52 yep Jul 17 16:49:54 nah, it's more of a style thing Jul 17 16:50:06 it's definitely not a style thing Jul 17 16:50:11 [12:50:06] it's definitely not a style thing Jul 17 16:50:20 unless it's your style to write non-reusable code Jul 17 16:50:30 lol ya'll are such java heads Jul 17 16:50:42 you can't have all of your classes as reusable Jul 17 16:50:49 i did a project like that once, it ended up such a mess Jul 17 16:51:19 i have generic superclasses which do most of the work, then i subclass it for whenever i want to do a variation etc Jul 17 16:51:23 wongk: remember how you doubted there were hundreds of users on android 4.1? Jul 17 16:51:40 i didn't doubt, i was just surprised by it :P Jul 17 16:51:53 what's the best way to bulk load a bunch of JPGs from URL into a list of ImageViews? Right now in my adapter I"m starting a backgroun task that fetches the JPGs stream from java.net.URL, passes that into a Bitmap, and sets that bitmap on the imageview. The problem is this is really slow and sporadic (it only loads some of the images, not all of them) Jul 17 16:52:19 statistics just got updated: http://www.webpagescreenshot.info/i/560704-717201275153pm.png Jul 17 16:52:25 thousands, even! :o Jul 17 16:52:30 wow Jul 17 16:52:39 the rooters are out in full effect! :P Jul 17 16:52:49 mots que es de app? Jul 17 16:52:50 lucky bastards, i can't even get ICS Jul 17 16:52:51 that's what I get for catering to the early adopter crowd ;D Jul 17 16:53:02 wongk haha Jul 17 16:53:24 Jug6ernaut, https://play.google.com/store/apps/details?id=org.mots.haxsync Jul 17 16:53:27 * wongk needs a gnex Jul 17 16:53:38 What would be the easiest way to create a static map from strings to strings? It would be cool if I could declare it in a xml resource somehow, and not having to actually have a static object somewhre Jul 17 16:53:42 currently suffering from a quite annoying issue on android 4.1.1 :/ Jul 17 16:53:42 mots ahh nice, (happy customer here ;)) Jul 17 16:53:49 is there a site that displays all available colors for setting a TextView's color? Jul 17 16:53:55 http://code.google.com/p/android/issues/detail?id=34880 Jul 17 16:54:02 Jug6ernaut, glad to be of service ;) Jul 17 16:54:03 all issues are quite annoying ;) Jul 17 16:54:11 hmm interesting http://s.scruffyfox.me/i%202012-07-17%20at%2017.54.02.png Jul 17 16:54:26 thats for my app https://play.google.com/store/apps/details?id=com.cube.arc.fa Jul 17 16:54:29 * Jug6ernaut wishes google would standardize there damn led api Jul 17 16:54:32 or how about have one at all? Jul 17 16:54:43 Jug6ernaut: tell me about it.. Jul 17 16:54:46 Jug6ernaut, true, but this one is worse then most Jul 17 16:54:54 as it's caused by google play itself Jul 17 16:55:02 my apk is perfectly fine, google play just borks it Jul 17 16:55:04 lame Jul 17 16:55:08 lol wow Jul 17 16:55:58 by the way, what's the prefered way to record screencasts? I'd like something fluid, most solutions I found are about 4fps :/ Jul 17 16:56:09 theres an app for that Jul 17 16:56:09 installing an x86 emulator image and recording that window? Jul 17 16:56:14 or is there a better way? Jul 17 16:56:27 canadiancow|work, the only one I found doesn't work on gnex :/ Jul 17 16:56:36 mots, tried 'Screencast' ? :p Jul 17 16:56:51 mots use "screncast" Jul 17 16:56:58 https://play.google.com/store/apps/details?id=com.ms.screencastfree Jul 17 16:56:59 dzan, Jug6ernaut: ** Does not work on Galaxy Nexus or Tegra 2/3 yet ** Jul 17 16:56:59 or as dzan said :P Jul 17 16:57:05 I only have a gnex Jul 17 16:57:06 oh Jul 17 16:57:07 lamesauce Jul 17 16:57:12 ^^^ Jul 17 16:57:15 i even "bought" the paid one Jul 17 16:57:22 canadiancow|work same here Jul 17 16:57:26 easilly worth cost Jul 17 16:57:36 :S Jul 17 16:57:41 what's the best way to bulk load a bunch of JPGs from URL into a list of ImageViews? Right now in my adapter I"m starting a backgroun task that fetches the JPGs stream from java.net.URL, passes that into a Bitmap, and sets that bitmap on the imageview. The problem is this is really slow and sporadic (it only loads some of the images, not all of them) Jul 17 16:57:41 i expensed it though :P Jul 17 16:57:56 haha Jul 17 16:58:07 murz lazy load is the ONLY way u should do that Jul 17 16:58:17 canadiancow|work, Jug6ernaut does it work on your devices? I'd be very grateful for a quick screencast of haxsync's initial setup Jul 17 16:58:22 what is lazy load? Jul 17 16:58:26 (I can provide the apk if you don't have it) Jul 17 16:58:44 murz google it Jul 17 16:58:45 getting tired of people not reading the market page for instructions and spamming me with emails Jul 17 16:59:43 murz start here http://open-pim.com/tmp/LazyList.zip Jul 17 16:59:55 mots let me see Jul 17 16:59:59 sup Jul 17 17:01:43 anyone using the google IAP? Jul 17 17:02:44 aide onscreen keyboard not working Jul 17 17:03:11 is there any android dev chat chan? Jul 17 17:04:09 seirously? Jul 17 17:05:17 lol Jul 17 17:05:22 Woop, Nexus 7 shipped Jul 17 17:07:29 oll mobilegamelabs Jul 17 17:07:32 lol* Jul 17 17:07:41 Estel: and how u like it? :) Jul 17 17:08:13 ixc: well, I might form an opinion once it's actually delivered Jul 17 17:08:59 i need 1-2 month for avaiable in my country :( Jul 17 17:09:24 yeah market console shows now Android 4.1 :) Jul 17 17:09:48 so i have time for make my decision about it; worry a little of little screen Jul 17 17:11:27 ecegmu23 Jul 17 17:13:35 canadiancow|work: ? Jul 17 17:13:41 CallumTaylor: what? Jul 17 17:13:58 you're in #android-dev asking if there's an android dev chat? Jul 17 17:14:04 mobilegamelabs: whatch channel where r u Jul 17 17:14:12 how do I make a menu appear when the settings button the phone is clicked? Jul 17 17:14:56 nvm I found it Jul 17 17:15:15 canadiancow|work: i meant android dev offtopic chat chan Jul 17 17:15:23 ixc: ^ as well Jul 17 17:15:40 to me, android dev chan != android dev chat chan Jul 17 17:18:30 aide is cool Jul 17 17:18:42 for development on android Jul 17 17:19:46 this can be off topic Jul 17 17:21:26 someone please answer to this question : http://stackoverflow.com/questions/11524561/displaying-android-app-icon-in-browser Jul 17 17:25:15 <[trip]> does anyone know what BT chip the ADK 2012 board is utilizing? Jul 17 17:29:06 <[trip]> I guess I'll load the eagle files when I get the time. Jul 17 17:31:53 someone please answer to this question : http://stackoverflow.com/questions/11524561/displaying-android-app-icon-in-browser Jul 17 17:34:36 Is there anyway I can get the 'devices' view on my normal JAVA perspective? Jul 17 17:36:41 when adding items to the menu, is it possible to not add a group ID and an order? I just want to give it a text and an item ID Jul 17 17:36:56 but menu.add(null, 1, null, "Item1"); isn't allowed Jul 17 17:40:30 mysteronyx just give it 0.... Jul 17 17:41:07 ok Jul 17 17:48:56 Hi all, I had a question: I just finished my first app, it's a soundboard. Some of the sounds I recorded myself, others I took from some movies & tv shows. They're real short sounds though, maybe about max 2 seconds long Jul 17 17:49:27 Should I publish this, just for fun to see how the process works, or can I get in too much trouble because of the whole copyright thing? Jul 17 17:50:25 I want to create a dialog that lets the user choose between two actions (like when you want to attach a picture, and it lets you choose between Camera or Gallery). Is this a standard dialog? If so, what is it called? Jul 17 17:51:53 ThomQ, there's already a bud spencer and terence hill sound board on google play, maybe its developer can tell you his copyright experiences Jul 17 17:52:16 anyway this will depend on the copyright holders and the law you fall under Jul 17 17:52:37 here in germany iirc there's a regulation allowing up to five seconds e.g. on websites Jul 17 17:53:06 but if you publish it you might (also) fall under different legislation Jul 17 17:53:10 ThomQ u cant use copyrighted sounds Jul 17 17:53:25 if its a free app, it should be fine i would have thought Jul 17 17:53:38 id say go for it and if they ask you to take down, just do it Jul 17 17:53:44 the worst the would do is that Jul 17 18:03:54 @EPG yeah, there's something simmilair here in Holland Jul 17 18:04:07 And ive seen a lot of soundboards on google play already Jul 17 18:05:15 @ Callum; They wouldn't suspend my account over that? Jul 17 18:06:58 I am wndering why anyone would ask for a fibonacci algorythm in an interview... Jul 17 18:07:32 Jonathan_Eyre, basic knowledge of maths and probably recursion Jul 17 18:07:35 Jonathan_Eyre: that's how you search for intelligent life Jul 17 18:07:57 @ jonathan: Too know what kind of TV shows you watch ;) Jul 17 18:08:08 I've been programming for 13 years and I have yet to need a fibonacci generator in C,C++,C#,HTML,Java,or PHP. Jul 17 18:08:14 Perhaps this is a Python need? Jul 17 18:11:02 I had to smile at the "write a loop from 0-10" question. Jul 17 18:11:10 THIS ONE GOES TO ELEVEN! Jul 17 18:11:37 Assuming, of course, that 0-10 includes the number 10. Jul 17 18:12:08 Hi, I call mCamera.takePicture with picture callback. Callback has now empty onPictureTaken method and app freezes here. Any ideas why? Jul 17 18:12:43 You are not returning the type desired by the function, probably. Jul 17 18:13:18 it is void Jul 17 18:14:53 Well, it was a thought, at least. Are you certain you know where it is freezing? Like you definitely know the chain of actions, and you've logged them all, and you know without a doubt that it is this function that is freezing? 9 out of 10 "Freezes" occur after the function has returned. Jul 17 18:15:54 Or within the function, in which case it is beyond simple to log and trace. Jul 17 18:28:29 how can i use internal keyboard on oracle virtualbox Jul 17 18:34:52 ugh Jul 17 18:35:09 google, you fail Jul 17 18:41:26 Ok #android-dev, help me solve this dilema. I am trying to justify to myself buying a Nexus 7. One rationalization is that I can use it to test Android apps (I only have an iPhone now). How good of an argument is this? Will using a 7inch tablet be "good enough" for general app testing? Jul 17 18:42:02 no 1 device is 'good enough' Jul 17 18:42:30 it is 'good enough' for testing 4.1 on a 7" tablet :P Jul 17 18:42:43 with tvdpi -.- Jul 17 18:42:49 You can always try a virtual machine. adb is great for many things, and you won't ever destroy your device. (Or if you do, it's no big, just create a new virtual device.) Jul 17 18:42:53 you mean for phone or tablet development Jul 17 18:43:19 OTOH, You're going to need a whole ton of devices for "real-world" testing. Jul 17 18:43:27 true, true Jul 17 18:43:27 or windows native apps, he will use tablet for remote desktop :D Jul 17 18:43:44 http://developer.android.com/about/dashboards/index.html is a good place to look Jul 17 18:44:20 i am wondering if a 7 incher will be small enough to squeak by with general phone ui Jul 17 18:45:31 the n7 has about the same resolution as a gnexus, but you're still likely going to want to at least consider different UI Jul 17 18:45:36 lk16: You will probably trigger the tablet UI sizes on a 7" tablet, instead of the phone UI. You need something pretty small to natively use the Phones size UI. Jul 17 18:45:44 because in terms of physical size, it's much bigger Jul 17 18:45:57 it depends how you define your UIs though Jul 17 18:45:58 hehehe he said "I wonde if a 7 incher will be small enough"" huhuhuhuh Jul 17 18:45:59 Something around 400 pixels? Jul 17 18:46:15 * caverdude bevus impresion Jul 17 18:51:24 hello; i'm about to deploy something onto the market, but i'm a little apprehensive and have a few questions Jul 17 18:51:43 first off, can i 'test' deploy something without making it visible to everyone? is there some way to toggle whether or not it can be publicly seen after i post it? Jul 17 18:53:43 secondly (and this is more a logistical question), would it be a terrible idea to deploy a prerelease? my lab is never planning to charge for it, but we'd like to make a good first impression. our software isn't buggy, but it's probably going to continue to change over time, and we're not sure we have the infrastucture right now to support how we'd like it to be used by curious end-users Jul 17 18:53:43 as opposed to the study participants we've had so far Jul 17 18:53:49 that's it for now Jul 17 18:57:46 what's the correct way for a service to have an appwidgetprovider update it's widgets? Jul 17 18:58:46 AppWidgetManager#updateAppWidget Jul 17 18:59:29 that doesn't strictly have to be called from the provider's onUpdate() handler? Jul 17 19:09:46 Escherial, yes you can publish and unpublish something on Google Play...the people who downloaded it will still have it, but it will not be visible on Google Play Jul 17 19:11:07 Ologn: ah, that's comforting; thanks :) Jul 17 19:12:49 Escherial, as far as a release, the two main questions are what will the active/total percentage be (how many people will download and erase it) and what rating will they give it. It's a balancing act - garbage will get bad ratings and high uninstall rates, but in the long run it doesn't make sense to be too perfectionist either. Jul 17 19:13:51 hmm, what's a good control for android to let the user enter an integer > 1? Jul 17 19:15:24 Ologn: Do uninstall rates get logged? Jul 17 19:15:27 something like: http://qt-project.org/doc/qt-5.0/qspinbox.html#details Jul 17 19:15:52 Ologn: that makes sense. i think our software is unique in that we're expecting the use cases to change dramatically in the near future, which is going to change the whole thing Jul 17 19:16:12 still, we need to get something out so that people can see it, and market deployment would feel more official, not to mention easier to mainta Jul 17 19:16:19 *maintain, even :| Jul 17 19:16:27 Jonathan_Eyre: Yes. If you have a new project and 85-90% of people quickly uninstall it, that will probably hurt you in rankings Jul 17 19:16:55 i think at this point i'm just voicing my insecurities about it, but i'm sure i'll manage. Jul 17 19:17:08 Escherial, well, mention that early in your market blurb, even though half the people don't really read the blurb. Jul 17 19:17:19 Ologn: I didn't know that Google Play could detect that sort of thing. Does a notification get sent to Google on an uninstall? Or is that just for apps that were paid for? Jul 17 19:17:46 Ologn: that is correct, uninstalls influences rankings Jul 17 19:18:02 tapas: edittext's digits attribute? Jul 17 19:18:06 Jonathan_Eyre, free and paid. I know the exact install/uninstall ratio of all my apps. I think Android devices update Google Play once a day or something like that... Jul 17 19:18:21 ixc: i found this though: http://www.quietlycoding.com/?p=5 Jul 17 19:19:09 cool, so 4.1 finally gets working ASLR Jul 17 19:19:34 what would be really nice is some way to hide the app from searches while still being able to give out links to it on the market Jul 17 19:19:53 Escherial, there's a way to kind of do that Jul 17 19:19:58 tapas: i used edittext with android:numeric="integer" android:inputType="number" Jul 17 19:20:08 Escherial, first, limit all downloads to somewhere like the USA Jul 17 19:21:08 Escherial, two, go into the device limiter and limit all devices except those you want. So if your friend has a Motorola Droid, and other friend has a Nexus, limit all downloads to only those two types of devices Jul 17 19:21:49 Escherial, three, don't put many keywords in your blurb, just say this is a beta...I think there's even a beta/test category on Play which (I believe, not sure) you can change to a real category later Jul 17 19:22:18 So a few random people might download it, but you won't get a lot of unwanted users... Jul 17 19:22:30 ixc: that's a way, too i guess.. Jul 17 19:22:39 ixc: probably not quite as comfy though.. Jul 17 19:23:44 yes this method only give u a onscreen keyboard with numbers, like when u need enter pin code Jul 17 19:23:51 Ologn: there is a beta category on play ? Jul 17 19:25:00 g00s: Let me look..."Libraries & Demo"...I remember reading somewhere that that was for demos and betas and junk... Jul 17 19:25:21 Ologn: ah, ok. that cool thanks Jul 17 19:25:42 i thought it was a flag i could flip on my app Jul 17 19:25:47 heh Jul 17 19:25:51 YOU WISH Jul 17 19:26:12 does anyone have access to v2 of the console yet? Jul 17 19:26:19 i requested access like... during the keynote Jul 17 19:26:22 nope Jul 17 19:26:24 same Jul 17 19:26:28 no Jul 17 19:26:30 or the session or whatever Jul 17 19:26:30 and it keeps asking me to re-request it Jul 17 19:26:33 yea that too Jul 17 19:26:35 Ologn: great, thanks for the suggestions :) that helps significantly Jul 17 19:26:37 Jug6ernaut, yes Jul 17 19:26:51 i'd likely have stumbled into the options myself, but i'm petrified of doing something wrong Jul 17 19:33:31 hmm, for some reason R.java has stopped being built Jul 17 19:33:46 you have a broken resource likely Jul 17 19:33:48 check console Jul 17 19:34:19 yeah, it was a closed project.. Jul 17 19:34:24 removing it from the workspace fixed it.. Jul 17 19:34:25 weird.. Jul 17 19:45:10 btw: is it possible to tell eclipse not to "run" .xml files Jul 17 19:45:16 but rather the project? Jul 17 19:45:26 i'm tired of deleting .out.xml files ;D Jul 17 19:45:26 huh Jul 17 19:45:39 eclipse juno.. Jul 17 19:45:43 seems to be a new thing.. Jul 17 19:45:48 oh Jul 17 19:46:15 .out.xml used to be a bug i thought, fixed long ago - adt maybe ? Jul 17 19:48:15 hmm, it's the most recent ADT with the most recent eclipse.. Jul 17 19:48:16 oh well Jul 17 19:49:51 someone on SO said the problem is caused by installing xml-plugins in eclipse Jul 17 19:50:04 i'll try disabling them then.. Jul 17 19:50:49 guess i shouldn't have taken the Java EE version.. Jul 17 19:50:57 that is kinda XML heavy ;D Jul 17 19:55:17 btw: is there a way to make an imageview that has few pixels, but fills the screen, have square pixels? Jul 17 19:55:25 or rather rectangular? Jul 17 19:55:42 the imageview tries to be rather smart and doesn't show the pixels naturally in this situation :D Jul 17 19:56:28 If I have a custom view that is supposed to have a default background different than the view that it is based on, and said background is a drawable resource in an application, how do I properly set the background and reference the resource? I am currently just using this.setBackgroundResource(R.drawable.foo) but this causes issues with the Graphical Layout tab Jul 17 19:58:08 hmm, i guess i'll have to hack my own custom view.. working with layouts would get too tiresome.. Jul 17 19:58:34 i'd like to display a massively scaled down version of an image [like 32x8 pixels] Jul 17 19:58:46 and have nice rectangular regions for each pixel.. Jul 17 19:59:38 has anyone here run across the problem of needing to triangulate geometry when using opengl es? Jul 17 20:00:13 anybody know a link for 9 patch images? the one on android devlopers is kinda going over my head. Jul 17 20:00:41 f2prateek: what's your question? :D Jul 17 20:02:37 lol sorry that was bad phrasing Jul 17 20:02:47 just need a link that shows how ot generate 9 patch images Jul 17 20:02:50 *to Jul 17 20:03:00 there's a tool included in the android sdk Jul 17 20:03:07 where you can load a png and edit the border pixels Jul 17 20:03:12 it has previews, too Jul 17 20:03:18 it's called draw9patch or something Jul 17 20:03:37 but you can use any image editor and just save it with extension .9.png Jul 17 20:04:18 yeah i know, but i dont know how it works Jul 17 20:05:07 ok, the left and top pixels in the border demark the are that gets stretched Jul 17 20:05:18 and the right and bottom pixels denote the space used for content Jul 17 20:05:36 ok Jul 17 20:05:47 http://developer.android.com/tools/help/draw9patch.html Jul 17 20:05:55 do the images on the right size make more sense now? Jul 17 20:06:00 right side... Jul 17 20:06:16 yeahs thats the thing i was following Jul 17 20:06:31 i'm confused what the 1 pixel permiter thing is Jul 17 20:06:32 if you take the top picture.. Jul 17 20:06:52 there's only a small region that gets stretched.. and a rather large space for the content.. Jul 17 20:07:01 just play with it.. you'll get the hang of it :D Jul 17 20:07:09 ok i'll try Jul 17 20:07:27 and anything special i need ot use in xml? Jul 17 20:07:31 nah Jul 17 20:07:40 just put it in drawable/ and reference it via id.. Jul 17 20:07:49 R.drawable.name Jul 17 20:07:54 so it stetches automatically if i set it as background? Jul 17 20:08:09 i dont need to access it , just want it stretch to the content Jul 17 20:08:10 use e.g. an imagebutton iirc.. Jul 17 20:09:04 i'm using it as background for linearlayout, i'm assuming it stretches for that? Jul 17 20:09:08 i don't remember exactly if it works for all kind of views.. Jul 17 20:09:12 ok Jul 17 20:09:18 try it :D Jul 17 20:09:20 does it make sense to keep static members in a Service so they live longer? would that even work? Jul 17 20:09:23 or read the docs :D Jul 17 20:09:37 will do, thanks Jul 17 20:09:39 :) Jul 17 20:09:43 Hi , I'm looking for a simple public webserver that respond to a POST with JSON , any ideas ? Jul 17 20:10:00 Uhh, what do you want it to do particularly? Jul 17 20:10:07 f2prateek: http://stackoverflow.com/questions/3904852/android-layout-broken-with-9-patch-background Jul 17 20:10:11 test my json client Jul 17 20:10:20 f2prateek: has a solution, too.. maybe a good read.. Jul 17 20:10:23 So you don't want arbitary JSON then? Jul 17 20:10:54 anything would work as long as it sends a JSON string in response to POST Jul 17 20:11:25 most of simple stuff I found uses GET only Jul 17 20:12:18 natrix if its just for testing you can send me a php file and i will host if for you Jul 17 20:12:21 if you want Jul 17 20:12:41 or setup a simple server with node.js Jul 17 20:12:43 thanks, looking it into that Jul 17 20:12:54 should be fairly trivial to return a json document Jul 17 20:13:11 I think Twitter responds to API calls with JSON objects? Jul 17 20:13:12 with express and routes.. Jul 17 20:14:14 Estel: yes twitter uses JSON in their public API but I'm too lazy to read their doc Jul 17 20:15:02 tapas: thanks for the offer , but I think I will read something about twitter and test with their server Jul 17 20:15:15 I doubt you'll find many examples of public APIs that respond to POST data where you don't need to read some form of documentation to work out what to send/expect. Jul 17 20:15:16 natrix here have fun: http://wtf.co.il/test/test.php Jul 17 20:15:39 yotam : thanks Jul 17 20:16:02 yotam: that is indeed valid json :D Jul 17 20:16:15 Estel , I agree but I can live with a warning response :) Jul 17 20:16:40 :) it will also show the post data you send it Jul 17 20:16:53 hehe, ok :D Jul 17 20:17:18 do you use the standard php functions to filll the json from an array? Jul 17 20:17:19 test went throw :) Jul 17 20:17:20 i had a statelist drawable referencing itself Jul 17 20:17:22 that worked out well Jul 17 20:17:29 note that it sometimes produces broken json.. Jul 17 20:17:35 quoting boolean values for example Jul 17 20:17:37 or integers? Jul 17 20:17:42 something was fishy with it.. Jul 17 20:17:57 yotam , can you keep it online for a little long Jul 17 20:18:22 sure Jul 17 20:18:26 thanks Jul 17 20:22:19 tapas: it just does json_encode($_POST); Jul 17 20:22:59 i think php just doesn't know the correct type so it might take an int as a string if you dont specificaly tell him what it is Jul 17 20:23:02 So has anyone found a workaround for the StateList bug in ICS? Jul 17 20:23:27 but i've never seen it return broken json Jul 17 20:25:01 yotam: PHP's "types" are horrible Jul 17 20:25:29 dantheman: do you have a url for the bug in the issue tracker ? Jul 17 20:25:34 I'm still looking for the non-horrible part. Jul 17 20:25:42 rking: heh Jul 17 20:25:49 g00s: I'll find it Jul 17 20:26:00 g00s: the only ref I could find was a stack overflow link Jul 17 20:27:48 g00s: a similar type problem http://stackoverflow.com/questions/9760812/statelistdrawable-in-ice-cream-sandwich Jul 17 20:28:02 but I'm using it in a custom list adapter on a list view Jul 17 20:28:40 using the enabled, selected, and focused state and I'm seeing weirdness with the enabled state not getting set on a couple Jul 17 20:32:57 I've taken two intro to java courses at my university, whats the best place to learn how to develop android apps after having set up the SDK with my IDE and etc. Jul 17 20:33:29 anyone know of a device that is large/mdpi? Jul 17 20:34:27 what are the 1024x600 tablets? Jul 17 20:34:35 g-tab etc Jul 17 20:35:01 birbeck: the Kindle Fire Jul 17 20:35:29 jrr: tab 10.1 is xlarge/mdpi Jul 17 20:35:44 dantheman: so a nexus 7 would be as well? Jul 17 20:35:50 I don't think so Jul 17 20:35:56 cause it is 1280*800 Jul 17 20:36:02 I can grab mine and test Jul 17 20:36:26 i have an apk you can put on there that will say Jul 17 20:36:48 216 ppi Jul 17 20:37:01 so whatever that relates to Jul 17 20:37:12 my 7 gets here today Jul 17 20:37:12 birbeck: I has one too Jul 17 20:37:19 I've had mine for weeeeeeks Jul 17 20:37:33 i was at io, but i didnt get the swag :( Jul 17 20:37:42 why not? Jul 17 20:37:49 G Man? Jul 17 20:37:53 cause it was a shared ticket with the president of my company Jul 17 20:37:58 ahh Jul 17 20:37:58 birbeck n7 is tvdpi Jul 17 20:38:08 i went to the sessions, he got the swag Jul 17 20:38:23 I didn't go to either but got the swag Jul 17 20:38:37 nice score Jul 17 20:38:50 yeah but our guy didn't get me the ADK Jul 17 20:38:53 ar eyou his president? Jul 17 20:38:54 but being there is nice too Jul 17 20:39:02 heh Jul 17 20:39:07 possibly Jul 17 20:39:28 more like he was out on the west coast anyway coming back from vaykay Jul 17 20:39:32 anyway Jul 17 20:40:35 so the 7 is 1.6 Jul 17 20:40:53 tvdpi Jul 17 20:40:58 so it is between the hdpi and xhdpi Jul 17 20:41:08 canadiancow|work: stop calling it tvdpi Jul 17 20:41:12 it isn't tv Jul 17 20:41:27 ? Jul 17 20:41:29 it absolutely is Jul 17 20:41:32 wtf are you talking about Jul 17 20:41:32 uh Jul 17 20:41:35 dantheman: yes, it's tvdpi Jul 17 20:41:54 dvdpi is canonically ~213dpi. N7 is ~216dpi Jul 17 20:41:59 tvdpi is for 1280*720 Jul 17 20:42:04 no Jul 17 20:42:06 yes Jul 17 20:42:07 it's for a DENSITY Jul 17 20:42:10 dantheman: what does that even mean Jul 17 20:42:10 it can be ANY RESOLUTION Jul 17 20:42:11 ffs Jul 17 20:42:14 dantheman: how do you even computer Jul 17 20:43:05 I'll have to let my Galaxy Nexus know that it's no longer xhdpi :( Jul 17 20:43:08 tvdpi is for 720p[ Jul 17 20:43:11 device s Jul 17 20:43:12 dantheman: no, wrong Jul 17 20:43:22 evancharlton: then show me the docs smart ass Jul 17 20:43:24 it's for fucking devices with a 213dpi density Jul 17 20:43:29 dantheman: okay, one second Jul 17 20:43:30 how about he shows you a +o Jul 17 20:43:39 dantheman: in the meantime, you show me docs saying tvdpi = 720p Jul 17 20:43:45 last one back gets kicked Jul 17 20:43:47 http://developer.android.com/guide/topics/resources/providing-resources.html Jul 17 20:43:53 search the page for "tvdpi" Jul 17 20:43:55 oops, canadiancow|work beat me Jul 17 20:44:15 I hope he rejoins soon or I'll feel like an ass Jul 17 20:44:20 phew Jul 17 20:44:23 ass Jul 17 20:44:24 can you make the topic [16:42:14] dantheman: how do you even computer Jul 17 20:44:27 go fuck yourself Jul 17 20:44:29 wow, what did i start? Jul 17 20:44:33 dantheman: haha, 16:54 <@evancharlton> I hope he rejoins soon or I'll feel like an ass Jul 17 20:44:52 so besides the fire, what would be another large/mdpi? Jul 17 20:45:06 cause according to the google report thats 2.9% of devices Jul 17 20:45:08 i'd say the original galaxy tab Jul 17 20:45:09 birbeck: Galaxy Tab (the original) Jul 17 20:45:10 but they really fucked that up Jul 17 20:45:14 it reports itself as hdpi Jul 17 20:45:15 birbeck: HTC Flyer Jul 17 20:45:16 and the fire doesnt have market access Jul 17 20:45:30 birbeck: possibly Galaxy Note? Jul 17 20:45:32 yeah cause this doesn't say anything about 720p devices Jul 17 20:45:33 http://imgur.com/Y9VO1 Jul 17 20:45:40 evancharlton: not the note, i have one here Jul 17 20:45:49 HENSE THE TAG TV Jul 17 20:45:53 dont have access to an og tab anymore Jul 17 20:45:54 dantheman: did you even read it? Jul 17 20:45:59 yes I did Jul 17 20:46:03 dantheman: it says it's 213dpi. Jul 17 20:46:12 dantheman: the 720p bit is a red herring Jul 17 20:46:12 it's a dpi Jul 17 20:46:15 i.e. DENSITY Jul 17 20:46:18 not it isn't Jul 17 20:46:18 DEN SI TY Jul 17 20:46:26 [16:42:14] dantheman: how do you even computer Jul 17 20:46:32 considering I back ported that for Sigma Designs Jul 17 20:46:36 dantheman: alright, answer me this: my galaxy nexus is 1280x720, yet it's xhdpi. How can that be? Jul 17 20:46:46 dantheman: I hope they didn't pay you very much :-/ Jul 17 20:46:46 because of the screeeeeeeen size Jul 17 20:46:51 dantheman: ... what Jul 17 20:46:52 no Jul 17 20:46:53 wat Jul 17 20:46:55 [16:42:14] dantheman: how do you even computer Jul 17 20:47:03 evancharlton: I hope you troll better than you do Jul 17 20:47:14 WAR! Jul 17 20:47:19 canadiancow|work: go rip off someone's game it call it your own Jul 17 20:47:30 dantheman: this is from my Nexus 7: Jul 17 20:47:35 canadiancow|work: cause that is all your company does Jul 17 20:47:36 evanc@evanc:~$ adb shell getprop | grep density Jul 17 20:47:37 [ro.sf.lcd_density]: [213] Jul 17 20:47:45 dantheman: that's tvdpi Jul 17 20:47:52 we make hundreds of millions of dollars, so im not complaining Jul 17 20:48:07 canadiancow|work: hundreds of millions of dollars and you probably get paid around 120k Jul 17 20:48:15 yawn Jul 17 20:48:27 naw, they give it all to me because im so awesome Jul 17 20:48:35 goin all ad hominem and shit Jul 17 20:48:37 canadiancow|work: and isn't your company losing stock value? Jul 17 20:48:41 dantheman: leave the ad hominem attacks at the door Jul 17 20:48:47 ==doogan Jul 17 20:48:52 evancharlton: you started it Jul 17 20:48:55 fucking kicking me Jul 17 20:48:56 ass Jul 17 20:48:59 dantheman: chill Jul 17 20:49:06 you're wrong Jul 17 20:49:06 [16:42:14] dantheman: how do you even computer Jul 17 20:49:09 that's all there is to it Jul 17 20:49:16 I should call your PM at google Jul 17 20:49:20 I probably know him Jul 17 20:49:20 just admit that you misread the docs, learn, and move on Jul 17 20:49:27 please do Jul 17 20:49:46 I'm not here in any official capacity, so go nuts Jul 17 20:49:47 * evancharlton shrugs Jul 17 20:50:11 you'd be surprised Jul 17 20:50:12 anyway, to get this back on-topic: Jul 17 20:50:18 birbeck: nexus 7 is tvdpi Jul 17 20:50:31 birbeck: but you should use xhdpi resources Jul 17 20:50:43 otherwise it looks weird Jul 17 20:50:57 right, you should almost never cut tvdpi resources Jul 17 20:51:05 android will scale existing assets properly Jul 17 20:51:16 hardly Jul 17 20:51:47 Hey folks, is there any way to debug a SQLiteConstraintException, i.e. display a more detailed error message? Jul 17 20:52:05 pehlert: isn't there a pretty detailed message in logcat? Jul 17 20:53:00 evancharlton: What I'd like to know is which constraint failed, all it says in logcat is "error code 19: constraint failed" Jul 17 20:53:30 pehlert: hm, I know there's a way to get a more detailed explanation. I assume you've looked at the exception? Jul 17 20:53:40 as in the exception object Jul 17 20:54:35 evancharlton: Yup, apparently the only information associated with it is an error String object Jul 17 20:54:57 evancharlton: And that is the "error code 19..." Jul 17 20:55:17 pehlert: hrm. I don't remember, sorry. Isn't there a way to have it spit out the raw SQL it's running? Jul 17 20:56:14 evancharlton: Thanks anyway.. I don't know about the raw SQL output, but I'll check the source for hints Jul 17 21:00:35 Is there a style name to use when defining a custom theme to change the background of the main window only during the transition for activity to activity? Jul 17 21:01:16 developernotes: android:windowBackground? Jul 17 21:03:33 ixc: the windowBackground is shared during the display of the activity, so I see my background there as well. Was hoping to just be able to display something during the transitions. Jul 17 21:04:48 make a background for ur root layout in activity? Jul 17 21:09:32 ixc: I'll take a look at that - thanks. Jul 17 21:10:29 maybe after it u should clean window's background for free some memory, i dont know its how work on android Jul 17 21:10:50 keep in memory if its hide by other elements, or no Jul 17 21:11:27 yay, 4.1 OTA :) Jul 17 21:11:47 on what? Jul 17 21:11:53 my galaxy nexus Jul 17 21:12:01 oh i thought that went out days ago Jul 17 21:12:24 the devices don't update instantly, of course Jul 17 21:12:45 rollin' Jul 17 21:13:34 and RORin' Jul 17 21:13:38 Can I make multiple connections to adb through ddmlib (and therefore interact with multiple targets) at once? Jul 17 21:14:38 for example, to deploy an APK to 3 devices at once Jul 17 21:14:56 JakeWharton: not that I know of, but I wish such a thing existed Jul 17 21:15:36 yes Jul 17 21:15:38 theres an option Jul 17 21:15:50 run configurations Jul 17 21:15:53 oh this is eclipse Jul 17 21:16:00 but theres "launch on all compatible devices/avds" Jul 17 21:16:37 Hey all, what is the best practice for storing videos recorded in your app that you want to appear in the gallery? Jul 17 21:16:41 does it happen all at once or is the execution serial? Jul 17 21:16:57 the ADT Plugin is in AOSP right? Jul 17 21:17:13 I'm using getExternalFilesDir(Environment.DIRECTORY_MOVIES) but that returns a folder in the app's files, which will be deleted if the user removes the app Jul 17 21:17:20 JakeWharton: yes. tools.android.com, I believe Jul 17 21:18:58 zambo> hmm thats odd Jul 17 21:19:09 JakeWharton dunno ive never used it Jul 17 21:19:12 I want a friend to beta test my app. Do I just send him the apk file? And where does he put it on his phone? Jul 17 21:19:21 zambo: Context#getExternalFilesDir? Jul 17 21:19:24 getExternalFileDir should never return an app-local folder Jul 17 21:19:28 mysteronyx: you can just email it Jul 17 21:19:34 JakeWharton: i belive so, yeah. tools.android.com is probably the place to start looking. Jul 17 21:19:43 evan: yes, I'm calling it in an activity Jul 17 21:19:45 mysteronyx: he can just open the app from his email attachments on his phone Jul 17 21:19:52 canadiancow|work: then why did you say Eclipse could do it? Jul 17 21:20:10 zambo: that's working as intended. I think you're looking for Environment.getExternalStorageDir Jul 17 21:20:12 the option is there? Jul 17 21:20:13 mysteronyx: ensure that he has set the phone to accept 3rd party apps under settings -> programs Jul 17 21:20:15 zambo: yes, and that is deliberate. that is what that API is for. Jul 17 21:20:21 thanks luyang Jul 17 21:20:21 and that option comes from the ADT Plugin Jul 17 21:20:23 im assuming that advertised functionality works Jul 17 21:20:29 what do you want, a place to store files *permanently* in shared storage? Jul 17 21:20:47 I basically just want it to appear in the media gallery on 2.3+ Jul 17 21:21:05 permanently would probably be better Jul 17 21:21:38 eclipse plugin directory formats are so gross :( Jul 17 21:21:57 use Environment.getExternalStoragePublicDirectory() instead of getExternalFilesDir(), and be sure to tell the media provider about the new file Jul 17 21:22:14 http://developer.android.com/reference/android/os/Environment.html#getExternalStoragePublicDirectory(java.lang.String) Jul 17 21:22:32 Okay, thank you Jul 17 21:28:10 I'm attempting to find the actionbar tab bar style for when you overscroll left or right; anyone have any ideas? Jul 17 21:30:10 is it possible to have an activity force landscape orientation on phones, but be any orientation on xlarge / tablet devices? Jul 17 21:31:19 on "phones" not really Jul 17 21:31:23 on xlarge devices, yes Jul 17 21:31:28 you need some real qualifier to do it Jul 17 21:31:36 not some arbitrary idea of something like a "phone" :) Jul 17 21:31:59 yay Nexus 7 Jul 17 21:32:54 canadiancow|work: yes, i meant default configuration vs. xlarge. do i have to do it in code? the attribute on the activity in the manifest isn't per configuration... Jul 17 21:34:03 setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE) Jul 17 21:34:04 use the display metrics to get the screen size Jul 17 21:34:12 yes in code Jul 17 21:34:16 but yea Jul 17 21:34:20 check screen, then call that method Jul 17 21:34:24 giving it whatever parameter you want Jul 17 21:35:29 cool, cheers! Jul 17 21:36:16 I consider device is phone size if generalized size is lower or equal to "normal" Jul 17 21:36:33 My UI is becoming slow. I have all file read and writes on their own thread. I have all AudioTracks and AudioRecords on their own thread. I have an AsyncTask that updates a TextView. Is there a point where too many threads cause the UI to become slow? Jul 17 21:40:07 this is a very specific question but its worth a shot, is anyone familiar with why requirejs style javascript module loading would fail in the android 2.3.3 browser? Jul 17 21:41:20 has anyone tried opening an apk in an email, only to have it say "couldn't download"? Jul 17 21:42:10 I just tried emailing my apk to myself, and it says "couldn't download" when I go to install it Jul 17 21:42:34 mysteronyx: have you ticked the box allowing 'unknown sources' ? Jul 17 21:42:49 yes I selected it Jul 17 21:43:16 Paging JakeWharton. I'm working on an ABS implementation and I've got a really strange issue. When a user selects any menu item in the overflow on an older Android device, all overflow items will appear selected. Anybody ever run into this, or have any ideas of what to look at? Jul 17 21:44:40 mysteronyx: try sending again, i always email myself apks :) I assume the API level you're using is valid for your device Jul 17 21:45:05 I have a droid razr, and after resending the email twice, it still won't even download 1% of it Jul 17 21:45:12 I think the first time it tried downloading, it got to 40% Jul 17 21:45:23 perhaps I need to delete files from my phone? Jul 17 21:45:33 could it be caching the file? Jul 17 21:46:20 Is there something special I need to do to get broadcast intents (sent via sendBroadcast() in an Activity) to show up to a BroadcastReceiver's onReceive() in a separate android application? Jul 17 21:46:52 do I need to do anything explicit like put the service in the foreground? Jul 17 21:51:23 ok for some reason I was able to install the app this time. Where do downloaded, 3rd party apps get stored on phones? Jul 17 21:53:44 mysteronyx: do you have space on the phone to store it ? Jul 17 21:57:08 ugh, apple gets patent on disappearing scrollbars Jul 17 21:58:37 I'm skipping all patents stories until at least 2020 for own sanity Jul 17 21:59:25 umm....which TabHost method allows you to insert a tab at a specifed position? Jul 17 21:59:52 How can I reload a fragment ? Jul 17 22:01:12 I don't like that it takes so long for surfaceCreated to be called. Anything I can do about this? Jul 17 22:09:08 Hi everybody Jul 17 22:09:44 Opinions on testing android? Jul 17 22:10:20 Gowie: I found a cool site/service that allows you to upload an APK and have it tested on a bunch of devices, and have the results sent back to you. Jul 17 22:10:41 I'm trying to use jpct-ae with android so everything is ok until I create a new folder under the res folder and I add into my files (jpg + 3ds) when I try to build my project I'm getting an error that says Invalid resource directory name (Resource: 3d, Path /3DTest/res, Location 1, Type Android AAPT Problem) Jul 17 22:10:43 dlaroche: Cost money? Jul 17 22:10:45 any idea please ? Jul 17 22:10:52 dlaroche: where? ?? Jul 17 22:11:04 supern00b question: I want to have a background image that fills the whole screen. I need to use the different drawable folders to put the different versions in, right? Where can I find info on what resolutions I need to render my backgroundimages? Jul 17 22:11:10 Gowie: there is two sites, that do this, one cost money, and the other doesn't. Give me a sec to find the link for you. Jul 17 22:12:01 dlaroche: Thanks, sounds sweet. I was more asking about JUnit/Android Test tools framework, but that sounds helpful. Jul 17 22:12:25 Anybody got write JUnit tests for their methods? Jul 17 22:13:15 Gowie: here is the link http://www.appthwack.com/ Jul 17 22:13:48 they have 62 phones and 9 tablets that they run your app on. Jul 17 22:14:44 dlaroche: Nice, thanks! Jul 17 22:15:16 no problem. Just discovered the service myself. Ran one APK on there, and the results were impressive for a free service Jul 17 22:16:14 Also, another cool site/free service that I found related to GUI design is www.fluidui.com Jul 17 22:16:14 ok I did a few tutorials, what do you guys recommend as next steps in learning android dev further - I example apps with fragments, fragments/Framelayouts still confuse me in practice Jul 17 22:17:44 dlaroche: Damn, thats 2 for 2. Nice. Jul 17 22:17:46 joikus: The best route to learn something for me is to just jump right in and try creating your own app. Don't worry if you know everything needed to complete the app, because if you don't know something then there is your oppurtunity to learn it, and apply it. Jul 17 22:18:53 my sync adapter is going rampant, syncing in a seemingly infinite loop. My content provider does not request sync whenever it is modified, and I cannot find any other sources for this behavior. Any ideas? Jul 17 22:19:18 I'm using eclipse to test my app. How do I completely erase whatever eclipse installed on my phone to run the app? Jul 17 22:19:22 isn't it possible to add files to the res folder ? Jul 17 22:19:36 dlaroche that's what I started doing - ok sounds good Jul 17 22:19:40 mysteronyx: adb uninstall your.package.name.here Jul 17 22:19:50 mysteronyx: i thought I sent you a link a while back on how to completely remove an app from a device Jul 17 22:19:59 dlaroche I don't remember you sending that Jul 17 22:20:07 thanks ryanm Jul 17 22:20:19 joikus: you can read all the tutorials you want, but most likely it won't make sense until you start to apply it. Jul 17 22:22:09 woot. my nexus 7 was just delivered Jul 17 22:23:04 birbeck, nice, still waiting on mine Jul 17 22:23:22 dlaroche, ya I did lots of them - but now I started a new project using the 2pane setup Jul 17 22:23:23 its at home though, im at work Jul 17 22:23:46 goodbye galaxy tab and xoom Jul 17 22:23:53 Is there a way to, when I change the theme & orientation around in eclipse, having those changes set in the corresponding XML files? Jul 17 22:24:36 Currently the changes do display in the graphical layout, but not in the xml files Jul 17 22:24:38 I kind of get, activity_item_list, activity_item_detail, and activity_item_twopane, the latter is for devices big enough to show both Jul 17 22:26:14 I typed adb uninstall com.ideas into terminal, and it sits there saying "waiting for device." any idea what I should do? Jul 17 22:34:03 plug in your device Jul 17 22:34:05 hi Jul 17 22:34:24 bankai_ I did Jul 17 22:34:31 it's plugged in, but it just sits there on "waiting for device" Jul 17 22:34:34 enable usb debug Jul 17 22:34:40 I get this error: public ActionProvider getActionProvider -> Class requires API Level 14, current min is 3 Jul 17 22:34:47 but I changed this in the manifest Jul 17 22:34:53 bankai_ usb debug is on Jul 17 22:34:56 Jul 17 22:35:07 mysteronyx: are you on windows? Jul 17 22:35:14 yea Jul 17 22:35:21 does anyone know how to set the country for the google play client ? I want to see the ranking of an app of my own in different countries... Jul 17 22:35:35 you'll need some drivers or something, no doubt Jul 17 22:35:46 is there another way to delete this app off my phone? Jul 17 22:36:05 mysteronyx: go into manage applications Jul 17 22:36:10 it doesn't appear there Jul 17 22:36:38 xroberx: there used to be a way when marketplace was still around, i haven't found a way to do it with play. have a chat to the #android-root guys Jul 17 22:37:05 is there a way for a developer to gift someone their app from the play store? Jul 17 22:37:09 whenever I run the app via Eclipse, it logs back into the same user I had logged into previously, so it must still be stored on my phone Jul 17 22:37:24 say to give their beta testers or an editor for a blog review? Jul 17 22:37:37 bankai_: thank you, I'm already there waiting for a response Jul 17 22:37:50 xroberx: when you find out, give me a bell ;) Jul 17 22:38:08 bankai_: ok :) Jul 17 22:38:10 hi, i'm trying to create custom content provider and wondering about projection map. my query uses count() and sum() on joined tables and presents the results grouped in aliases. should I put "count(table.col)" into projection map somehow? Jul 17 22:39:05 how does FragmentPagerAdapter know when to call getItem()? I'm finding that it keeps a cached copy and avoids calling getItem() even though I have called adapter.notifyDataSetChanged() Jul 17 22:45:34 how do I lock my apps screen orientation? Jul 17 22:45:40 If it hasn't already called getItem for that position Jul 17 22:51:13 It makes almost no difference to cache a bitmapdrawable vs a bitmap, right? Jul 17 22:51:23 android:screenOrientation="landscape" Jul 17 22:51:23 android:configChanges="keyboardHidden|orientation" Jul 17 22:51:32 SimonVT: I understand, but I'm trying to invalidate it. Why is adapter.notifyDataSetChanged() not sufficient? Will FragmentPagerAdapter _never_ let go of an item? Jul 17 22:51:43 Both don't work for me locking the orientation. Anybody know why? Jul 17 22:53:39 murz: For notifydatasetchanged to work at all, you need to override getItemPosition.. But it might not even work then with fragmentpageradapter Jul 17 22:53:46 You might have to make your own adapter Jul 17 22:54:11 Yeah, I already overrode getItemPosition. I guess I'll go down the roll your own adapter route. Thanks Jul 17 22:56:51 ThomQ: where in the manifest is it? Jul 17 23:02:01 Hello. Is there any good source or book that explains the creation of controls programmaticaly ? Jul 17 23:03:04 @ f2prateek; Yeah I had it in the wrong place, thanks! :) Jul 17 23:04:28 new question: I get 2 "R cannot be resolved to a variable" in the standard HelloWorld activity.java.. Strange thing is: I copy pasted a picture into a drawable map, I haven't even touched the .java file yet Jul 17 23:05:32 setContentView(R.layout.activity_main); & getMenuInflater().inflate(R.menu.activity_main, menu); give me the errors Jul 17 23:07:55 also, I can't use the delete button, nor ctrl c ctrl v in Eclipse Jul 17 23:07:58 what is that about Jul 17 23:10:16 I unplugged your keyboard Jul 17 23:13:05 No, I had to clean my project, and then some more steps someone told me yesterday.. But I forgot them Jul 17 23:13:51 nice Jul 17 23:13:56 Great news! Your order on Google Play has shipped. Track the status of your package UPS. Note that it may take 24 hours for your tracking number to return any information. Jul 17 23:14:03 nexus 7, my first android device Jul 17 23:15:59 ThomQ: are you importing android.R by any chance Jul 17 23:16:29 ThomQ: what OS are you using? Jul 17 23:16:48 more likely the copy-paste broke an xml file and aapt is failing to generate the R file Jul 17 23:16:55 f2prateek: Nope, all I did was start a new project, and added a background file Jul 17 23:17:05 @dlaroche: Win7 64bit Jul 17 23:17:25 ThomQ: what background file did you add? Jul 17 23:17:47 an image.. Jpeg Jul 17 23:17:55 ThomQ: actually just pastebin your code Jul 17 23:17:57 ctrl c and ctrl v is a bug in eclipse i think, it sometimes doesnt work for me and i know a couple people who had the issue Jul 17 23:17:58 i already made the project again Jul 17 23:18:17 its not giving any errors now.. same code :S Jul 17 23:19:02 Eclipse has a lot of issues with needing the project constantly cleaned. Jul 17 23:20:00 anyone had experience getting haxe working with android? Jul 17 23:20:23 Wondering if I should try java or c++ route Jul 17 23:25:17 f2prateek: 32bit or 64? Jul 17 23:25:57 DubLo7: Depends on what you're doing but Java is usually the way to go for most applications Jul 17 23:26:13 I have a relative layout with two TextFields next to each other, like this: http://pastebin.com/TwHn78b0 . I want the left label to fill say 80% of the window width, and wrapping the text if it does not fit. The right TextField should use the remaining 20%. The only way I have found so far is specifying android:maxWidth="280dip", but when I have to have different layouts with different maxWidth for different resolutions. Can I use a mor Jul 17 23:26:13 e relative measurement, like 80%? Jul 17 23:26:40 Sorry, I mean TextView of course. Jul 17 23:27:22 Use a linearlayout, and give them weights Jul 17 23:27:29 You're probably looking for the android:layout_weight attribute. It will allow you to use percentages to define your layout. Jul 17 23:27:38 what SimonVT said Jul 17 23:27:47 Nice, I'll try that. Thanks. Jul 17 23:28:07 gizero: http://pastebin.com/xeheX02E Jul 17 23:28:38 Lord_Zero, Thanks. I'll try it myself though without peeking there firsT;-) Jul 17 23:28:59 You are motivated than i... :P Jul 17 23:29:02 g2g kids Jul 17 23:31:09 Is there anything I can do to make surfaceCreated get called sooner? The SurfaceView is already instantiated, but merely attaching it to the window and creating the surface takes 120 ms?? Jul 17 23:31:13 LordZero: 64 bit... Jul 17 23:31:59 themirror: yes Jul 17 23:32:09 you can't really affect how quickly the GPU does its work Jul 17 23:32:14 (GPU and its driver) Jul 17 23:33:01 ctate: ugh, it's the first thing i do upon un-pausing my game and it definitely makes resuming laggy Jul 17 23:33:32 maybe i'll try waiting for it rather than skip a frame Jul 17 23:34:37 Does anyone know if making views inside RemoteViews clickable in Android notifications is broken in less than HoneyComb? Jul 17 23:35:48 hwrd|work: not "broken", but not supported. it was not-working as intended prior to HC. Jul 17 23:36:32 the API would technically let you express it, but would explicitly disregard and only give you the whole-notification click Jul 17 23:38:07 ctate: Thanks! That was driving me crazy... Jul 17 23:39:34 Anyone here use the app Andlytics? Jul 17 23:40:04 Or better yet, anyone know an app to view your developer console on your phone? Jul 17 23:42:50 T-Dub: I don't think that is possible because there is no SDK / API available for the developer console Jul 17 23:42:59 Hmm Jul 17 23:43:06 Well the app Andlytics does it Jul 17 23:43:10 But it constantly goes down Jul 17 23:43:13 Like right now :| Jul 17 23:43:14 let me check Jul 17 23:43:25 Every time Google changes the console or something it goes down. Jul 17 23:44:14 yeah, because they don't openly allow this. I'm sure there are scrubbing the HTML for the data which isn't a good idea, because as you said, when the console changes this breaks the app Jul 17 23:44:19 They have a dialog thing that shows up when it can't get the data, it says "Updates are currently not possible, probably because the remote interface changed" Jul 17 23:44:30 Yeah Jul 17 23:44:33 I don't get it though. Jul 17 23:44:40 What don't you get? Jul 17 23:44:48 The console is for MOBILE devices. And yet they don't even support MOBILE devices. Jul 17 23:45:27 lol..yeah. I was looking into this a while back, because I wanted to make an app that would allow me to monitor my advertising accounts, developer account, all in one Jul 17 23:45:36 Yeah. Jul 17 23:45:46 This app, Andyltics, is pretty bad ass when it works. Jul 17 23:45:53 but threw the idea out the door once I discovered there wasn't an elegant solution to getting your developer console data Jul 17 23:46:01 You can also link up an admob account and it will retrieve those stats too. Jul 17 23:46:19 Tells you the statistics too, like downloads per date, ratings, comments, etc. Jul 17 23:46:20 how often does it break ? Jul 17 23:46:30 AdMob has an SDK so that is not the problem Jul 17 23:46:34 It's unfortunate google doesn't have a sdk for the console. Jul 17 23:46:38 Maybe once a week it appears. Jul 17 23:46:53 ugh that'd be too often Jul 17 23:46:57 I'm not sure, haven't kept track. It's broken for me twice sense I've downloaded it. Jul 17 23:47:01 sometimes it's a matter of making your regex less picky Jul 17 23:47:10 I'm sure the developer for that app plays hell keeping up with the changes :) Jul 17 23:47:12 depending on how they're scraping the data Jul 17 23:47:22 The first time it broke they actually removed the app from the app store and it was gone for about 2 weeks. Jul 17 23:47:38 They then release it as an open source app, and that's when I downloaded it again (as a new app) Jul 17 23:47:44 and it just broke for the first time today. Jul 17 23:48:07 Hi guys, I'm have a hardtime to dump my data inside a TextView - this is my Fragment, and the relevant code that fetches the data http://pastebin.com/uG3xnNb3 Not sure what to do in Line 21 Jul 17 23:48:26 T-Dub: it probably went open source to help keep up with the constant developer console changes. Less of a load on the developer Jul 17 23:48:28 Line 37, I have the data and want to dump it in the TextView Jul 17 23:48:36 Yeah. Jul 17 23:48:44 is the console just not usable in the device's browser? Jul 17 23:49:07 There are a few apps out that are direct copies of the old app, and it specifically says "the developer has quit this project and I have taken over to keep it updated, but I take no credit in it etc etc" Jul 17 23:49:14 Not my device browser. Jul 17 23:49:21 It shows up just fine, but never loads my actual apps. Jul 17 23:49:35 joikus: when are you loading the xml layout file? Jul 17 23:49:36 interesting. what device / android version? Jul 17 23:50:04 2.3.5, dx2, and I think in my 4.0.3 asus Jul 17 23:50:08 Let me double check, does it load for you? Jul 17 23:50:26 T-Dub: what mobile browser are you using? Jul 17 23:50:31 the default Jul 17 23:50:41 I think I tried in dolphin browser too Jul 17 23:50:53 try another one that lets you change the user-agent Jul 17 23:51:05 I've tried that too Jul 17 23:51:10 in dolphine browser Jul 17 23:51:22 you might be able to full it into thinking you are requesting the data from a desktop browser Jul 17 23:51:28 dlaroche: My main activity's onCreate: setContentView(R.layout.activity_item_list); Jul 17 23:51:30 ok...nvm then Jul 17 23:51:39 yeah, it doesn't work Jul 17 23:51:42 It shows up like normal Jul 17 23:51:53 and you know how it shows a "LOADING..." with a circle loading dots Jul 17 23:52:04 On my phone it just sits at that, not actually animated, forever. Jul 17 23:52:34 http://puu.sh/JqbS Jul 17 23:53:45 dlaroche: I'm not sure where to put the TextView Jul 17 23:53:53 im inside a ListFragment Jul 17 23:54:27 can I put a TextView inside a tag Jul 17 23:55:59 that is not really a sensical question Jul 17 23:56:05 fragments are not UI Jul 17 23:56:24 they are like a finer-grained version of Activity Jul 17 23:56:43 ya I just got confused there Jul 17 23:57:01 T-Dub: it works fine on my default browser. http://imgur.com/OttlR Jul 17 23:57:01 but yes I remember reading theyre not UI Jul 17 23:57:10 I think I need to use setListAdapter Jul 17 23:57:14 what is the term for pressing the screen, not nescisarliy on a button? Jul 17 23:58:13 onTouch Jul 17 23:58:26 thanks Jul 17 23:59:05 when you deploy from the web is the app in a jar file? Jul 17 23:59:22 caverdude: explain further please Jul 17 23:59:39 dlaroche, what device and version of android? Jul 17 23:59:47 well, I mean surely the app isn't loaded onto the phone one file at a time Jul 17 23:59:55 Ok I think I get it, inside onPostExecute I should call setListAdapter to update the UI with data Jul 18 00:00:26 T-Dub: HTC Aria, 2.2 Jul 18 00:00:31 Hmm Jul 18 00:00:43 Do you change your user-agent? dlaroche Jul 18 00:00:47 no Jul 18 00:00:55 dlaroche, an app apparently has many files an folders.. how do these get from a web site to the phone? surely the phone doesn't load the files and folders one at a time? Jul 18 00:01:13 apk is an archive Jul 18 00:01:26 oh Jul 18 00:01:27 I see Jul 18 00:01:31 caverdude: if you mean offering an app for download from your site. Then yes they download the APK and load it onto their devices Jul 18 00:01:40 ok Jul 18 00:03:33 Has anyone got to test out the audio latency issues on Jellybean to see if they have really been resolved like David Sparks said so? Jul 18 00:04:08 He is claiming they got the latency down to 10ms compared to 350-500ms in previous Android versions. Jul 18 00:04:56 I don't have a Jellybean device, and I don't think the emulator is the best way to test this out. Jul 18 00:05:46 Errors, errors errors... Jul 18 00:05:49 1.public class MainActivity extends Activity { Jul 18 00:05:49 2. Jul 18 00:05:49 3. private SoundPool soundPool; Jul 18 00:05:49 4. private HashMap soundsMap; Jul 18 00:05:50 5. int SOUND1=1; Jul 18 00:05:50 6. int SOUND2=2; Jul 18 00:05:51 7. Jul 18 00:05:51 8. @Override Jul 18 00:05:52 9. public void onCreate(Bundle savedInstanceState) { Jul 18 00:05:52 10. super.onCreate(savedInstanceState); Jul 18 00:06:04 woops i didnt mean to do that Jul 18 00:06:09 ThomQ: don't paste your shit in here. Use pastebin or something Jul 18 00:06:11 dlan: depends on the device Jul 18 00:06:14 sorry for spamming guys, wanted to copy paste http://pastebin.com/jFMTTYX0 Jul 18 00:06:19 Dude. Jul 18 00:06:22 :) Jul 18 00:06:23 Hello Jul 18 00:06:46 yeah, this strange irc client(Hydra IRC) automaticly sends everything you paste.. Sorry bout that! Jul 18 00:06:50 romainguy: can you expand on what devices, or what the device must have to support this? Jul 18 00:07:04 nope sorry Jul 18 00:07:24 anyway, I get an error on line 15: raw cannot be resolved or is not a field Jul 18 00:07:26 Can anyone help me with building an webview app? I've followed some basic tut, bot when i am importin android.R i get the following problem: "webview cannot be resolved" Jul 18 00:07:30 romainguy: thanks, maybe I can just contact Sparks directly about this Jul 18 00:07:42 this problem dissapears if i remove import android.R Jul 18 00:08:10 Tryer: you shouldn't have to import android.R Jul 18 00:08:12 im trying to put some soundclips into a soundpool, and then when touching the screen play one of them Jul 18 00:08:25 Tryer: Sometimes when you add new resources you have to clean your project for R.java to be re-generated to include them Jul 18 00:08:34 err ThomQ Jul 18 00:08:42 what dlaroche said -- you should not be using android.R unless you have a very clear idea why you are doing so Jul 18 00:09:09 Thank you for your help, is there some way to show my code here? Jul 18 00:09:09 (but sometimes you can type R. and Eclipse will hlepfully think you want to automatically add an import for android.R.*, argghhg.) Jul 18 00:09:19 if it is wanting to import android.R then there is usually an error in one of your xml files Jul 18 00:09:19 is ListAdapter the right one to use when trying to render list of items with an icon, title etc? Jul 18 00:09:19 Tryer: use a service like pastebin.com Jul 18 00:09:22 hmm okok.. Thing is, almost every tutorial I follow uses android.R Jul 18 00:09:29 yeah Jul 18 00:09:29 same Jul 18 00:09:31 find better tutorials :) Jul 18 00:09:48 Ive seen many tutorials where the first thing they do is remove the android.R import Jul 18 00:09:49 ctate: +1 that answer Jul 18 00:10:10 ok in my project called MyFourthApp.. I have a file called MyFourthApp.apk in /bin/res is that the only file needed by the phone to run the app? thats already deployable .apk file? Jul 18 00:10:16 http://pastebin.com/aUBt7Riw Jul 18 00:10:20 so all that I need to do is upload that somewhere? Jul 18 00:10:26 Check this out Jul 18 00:10:38 then click a link to it from the browser on the phone? Jul 18 00:10:44 i either get an error on not imported R or an error on webview Jul 18 00:10:59 caverdude: no, you must export the app that way you can sign the app Jul 18 00:11:05 Tryer: how does your xml look like? Jul 18 00:11:05 error on webview meaning line 18? Jul 18 00:11:25 Tryer: or specially the id part of your webview Jul 18 00:11:27 hmm Jul 18 00:11:36 ok Jul 18 00:11:38 Tryer: if it is not id="@android:id/webview1" than that is the problem :D Jul 18 00:12:03 http://pastebin.com/vAk3f7n1 this is my XML Jul 18 00:12:05 caverdude: http://developer.android.com/tools/publishing/app-signing.html Jul 18 00:12:20 k Jul 18 00:12:27 Tryer: problem is, the id you try to get the webview by is not the id you defined in the xml! ;-) Jul 18 00:12:42 remove the R import.. and add a new import for your.package.name.R Jul 18 00:13:03 Is there a way application to start native app(without root permisions) Jul 18 00:13:14 hmm, having a hard time findin out what android.R is Jul 18 00:13:37 pboos: thank you for your help, so if i get this right, i'm gonna remove import android.r and import packagename.R? Jul 18 00:13:46 been at this for just 3 days now, so I don't have any good script-reference sites, nor Tutorial sites apparently :P Jul 18 00:13:51 ThomQ: it's the resources defined by the platform Jul 18 00:13:52 Tryer: yes.. Jul 18 00:13:57 as opposed to those defined by your app Jul 18 00:14:13 and then adjust the values to the right ones.. findViewById(R.id.WebView) Jul 18 00:14:25 you do not have to import your own package's R.* because you get your own package's symbols automagically Jul 18 00:14:29 and setContentView(R.layout.layoutfilename) Jul 18 00:16:08 ctate: oohh.. just tried.. really works! never new that! Jul 18 00:16:15 My package name is "com", and there i have a java file named MainAcitivity, my xml is in res - layout and is called main.xml, but when i try import com.R nothing happens, what have i done wrong? Jul 18 00:16:23 and for n00bies for me its easier to work with just the recourses I choose? Jul 18 00:16:27 ctate: but looks so weird then :D setContentView(layout.activity_main) Jul 18 00:16:38 ctate: I totally got used to the R. :) Jul 18 00:16:50 Tryer why is your package name just "com"? Jul 18 00:17:00 its all a bit different then any coding that I've been used too, so just trying to wrap my head around it :P Jul 18 00:17:13 wow, woz must be strong and have a really big pack :P http://www.engadget.com/2012/07/17/apple-founder-steve-wozniak-reveals-contents-of-his-backpack-iphones-ipads/ Jul 18 00:17:16 T-Dub: what should it be? Jul 18 00:17:28 ctate: is that actually good code style to just use id.button_ok or not good, because id, layout, string are often as well used for local variables? Jul 18 00:17:31 pboos: i use the R; it's a nice visual cue Jul 18 00:17:37 exactly Jul 18 00:17:59 using the R. is not technically necessary but i think it's good practice Jul 18 00:18:10 plus it's Android code style so if you ever want to work on AOSP, get used to it :) Jul 18 00:18:13 T-dub i just made something up for default Jul 18 00:18:14 Tryer: most people go with their website domain name, but you might not have one. You must insure that the package name is unique from EVERYONE else's in the world. Maybe do something you would assume only you would do. Like com.tryer.nameOfApp Jul 18 00:18:26 ah Jul 18 00:18:36 Also why are you importing the R.java class? Jul 18 00:18:54 alright thank you Jul 18 00:19:08 I usually do com.mywebsite.category.appname Jul 18 00:19:16 for example com.tdubstudios.soundboard.hungergames Jul 18 00:19:25 t-dub because if i dont i get the following error: "R cant be resolved to an variable" Jul 18 00:19:38 Do you have TeamViewer? Jul 18 00:19:51 nope Jul 18 00:19:52 or join.me? Jul 18 00:20:02 but i can install Jul 18 00:20:11 Tryer and T-Dub: http://m1.io/1oEp2XRnqIQ Jul 18 00:20:18 Do you have R.java? Jul 18 00:20:22 Tryer: that is meetings.io :) Jul 18 00:20:31 inside the gen folder Jul 18 00:20:33 Tryer: in browser with screen share.. will make things easy and quick Jul 18 00:20:44 hmm where is the keytool command located? the android sdk? or java sdk? Jul 18 00:20:54 I guess I can look Jul 18 00:21:01 java Jul 18 00:21:18 in the bin folder Jul 18 00:21:19 ok Jul 18 00:21:34 I swear I have the strangest issue ever. Jul 18 00:21:40 i doubt it :) Jul 18 00:21:47 T-dub meetings io is running a bit slow, but i'm on it Jul 18 00:21:48 I'm firing an intent to take a photo Jul 18 00:21:49 yes there it is Jul 18 00:22:00 Tryer: use chat :) Jul 18 00:22:10 thanks, actually I think I used it once before Jul 18 00:22:24 if you take the photo in portrait mode, it works fine, every time. If you take the photo in landscape, it fails every time .... Jul 18 00:22:48 ctate: any ideas? Jul 18 00:22:51 t-dub yes i have R.java there Jul 18 00:23:06 Did you dc from meetings? Jul 18 00:23:12 CodeFriar: yeah uh no clue Jul 18 00:23:17 and yes that is pretty funky Jul 18 00:23:40 CodeFriar: what do you mean with "fails" ? Jul 18 00:24:05 hmm, i can't seem to find any tutorial on using a soundpool, and Not finding any usage or R.raw Jul 18 00:24:08 I was trying to view your whole project for convience but if you aren't comfortable then can you just pastebin your code? Jul 18 00:24:11 pboos: It never writes the temp file. i'm posting the stacktrace now Jul 18 00:24:41 t-dub, working on it now, no problem for me Jul 18 00:24:44 CodeFriar: weird.. i do that and it works fine. you have the EXTRA_OUTPUT set? Jul 18 00:24:50 Oh, you're doing webcam lol. Jul 18 00:24:54 have to install some add ins Jul 18 00:24:55 Try screen share, no need for webcam Jul 18 00:25:00 CodeFair: maybe because you are trying to manipuate the image expecting it to be one size when it is another Jul 18 00:25:08 mye little lenovo is a litt laggy, hehe Jul 18 00:25:24 In the bottom menu there is a thing that says "share screen" and it has a new icon Jul 18 00:25:31 Tryer: i see. meetings.io is not nice on the processor.. takes up 100% :D Jul 18 00:25:58 pboos: here's the stack trace. https://gist.github.com/906a253f751e16208e3f Jul 18 00:26:09 pboos: i'lll attach the intent code there too Jul 18 00:26:20 CodeFriar: what is on line CaseDetailActivity.java:191 Jul 18 00:26:30 Hang in there guys, doing screen share now Jul 18 00:27:03 CodeFrair: show us the code. I want to see how you are handling the results Jul 18 00:27:05 Alright. Jul 18 00:27:11 CodeFriar: i know what it is ;-) you rotate your screen! and your activity does not handle the screen rotation Jul 18 00:27:20 pboos: ??? Jul 18 00:27:39 CodeFriar: your activity gets restarted when you change the orientation Jul 18 00:28:16 pboos: is there a way to keep it from force closing ? Jul 18 00:28:17 CodeFriar: if you add android:screenOrientation="portrait" to the activity in the AndroidManifest.xml will it work? Jul 18 00:28:21 wow this is running slow, "¨p¨lease ^stàn`d ¨by" ` Jul 18 00:29:06 is it better with firefox than chrome? Jul 18 00:29:19 CodeFriar: or another way: android:configChanges="orientation" Jul 18 00:29:25 dlaroche: line 191 is new File(uri); Jul 18 00:29:46 CodeFriar: and where is uri from? Jul 18 00:30:07 pboos: i save it, when I create the intent .... Jul 18 00:30:11 i think you're right Jul 18 00:30:26 I was just hoping there was a way to do onRestart or something Jul 18 00:30:28 CodeFriar: yes, that is why it is not existing anymore and resulting in a NullPointerException :) Jul 18 00:30:31 to restore state Jul 18 00:31:08 CodeFriar: there is onSaveInstanceState(Bundle) and onRestoreInstanceState(Bundle) Jul 18 00:31:09 Ok, I think I almost got it.. This activity http://pastebin.com/ZG45FqB0 only gives me errors on the method play (lines 27 & 34), and a syntax error regarding the } bracket at line 37, wich I don't totally get.. Jul 18 00:31:18 For the play method error I get : Description Resource Path Location Type Jul 18 00:31:18 The method play(int, float, float, int, int, float) in the type SoundPool is not applicable for the arguments (Object, float, float, int, int, float) MainActivity.java /Tommygun/src/qsim/tommygun line 40 Java Problem Jul 18 00:31:43 god damnit, Hydra IRC, why are you auto-sending! :@ Jul 18 00:32:16 pboos: hmm. any good tutorials on using them that you know of ? Jul 18 00:32:27 This is taking some time, t-dub , both my xml and java file are available through pastebin if it is anything we can do now Jul 18 00:32:38 ok I went through the export thing, does this mean it simply fixed the MyFourthApp.apk file located in the bin/res/ folder? or did it create a new .apk file somewhere else? Jul 18 00:32:47 CodeFriar: don't know any good ones right now.. just try to find some through google :) Jul 18 00:33:13 caverdude: when you export the app you should be able to tell it where you want the new APK, and where to find your app signing keys Jul 18 00:33:27 what would be the correct avd config for an N7 emulator? Jul 18 00:33:31 hmm actually it prompted me to create an new key Jul 18 00:33:39 I have res 800x1280 and API 16 Jul 18 00:33:41 Tryer: for a quick try, change R.layout.webview to layout.webview and R.id.webview1 to id.WebView Jul 18 00:33:46 ThomQ: you don't have a closing bracket for your activity to start with Jul 18 00:33:52 I don't recall it asking me where to put an files except maybe the key Jul 18 00:34:04 Tryer: it might work.. if layout.webview is wrong, try layout. and then autocompletion. use your layout Jul 18 00:34:07 and I don't see a apk file there Jul 18 00:34:27 Tryer: better to use R.layout, but in your situation we will skip that for now... Jul 18 00:34:28 caverdude: play with it until you figure it out. Jul 18 00:34:33 matter of fcate I see no keystore file there either Jul 18 00:34:40 ok Jul 18 00:34:59 caverdude: read the articles that Google offers on signing and releasing an app Jul 18 00:35:12 they are pretty detailed, and can help you faster then we can with this Jul 18 00:35:24 @bankai; Added another one at the end. Still get errors saying I have to delete a "}" token, and Two syntax errors telling me to add "}" 's Jul 18 00:35:56 I was fiddling around with them. I can see I needed that last one Jul 18 00:36:40 also have abstracted LCD density set to 213 Jul 18 00:37:03 Tryer please link me to the pastbines. Jul 18 00:37:21 ThomQ: you're missing a few overrides and required activity methods too Jul 18 00:37:21 No luck there pboos, for now Jul 18 00:37:24 yah 2 sec Jul 18 00:37:45 Tryer: what are the errors when doing that? Jul 18 00:38:16 http://pastebin.com/aUBt7Riw http://pastebin.com/vAk3f7n1 XML name main, java name main activity Jul 18 00:38:26 Does anyone know how to get the devices supported recording sampling rate for the microphone? Jul 18 00:38:47 pboos nothing recemble webview in autocomplete Jul 18 00:39:00 Bankai: You mean the standard ones ( public void onCreate(Bundle savedInstanceState & public boolean onCreateOptionsMenu(Menu menu) ) that eclipse makes automaticly? Jul 18 00:39:08 trying hard to get into meetings.io again Jul 18 00:39:11 Tryer: what does it show in autocomplete? anything that looks like the file name of the xml? Jul 18 00:39:15 Is there a method available for this? Or do I just need to loop through the initialization with different sampling rates until it doesn't fail? Jul 18 00:39:17 Tryer: where is you xml located at? Jul 18 00:39:32 in res - layout Jul 18 00:40:04 nothing like the file name of the xml Jul 18 00:40:25 I was following this tutorial: http://www.droidnova.com/creating-sound-effects-in-android-part-1,570.html . Didn't add code to add sounds to the soundpool, is that required for that code I pasted? Jul 18 00:40:44 Well problem one is andorid.R Jul 18 00:40:48 What is that for? Jul 18 00:41:10 tray^ Jul 18 00:41:13 trayer* Jul 18 00:41:16 T-Dub: it is a file Eclipse makes to organize, and find resources Jul 18 00:41:30 None of my projects have that as an import Jul 18 00:41:33 If i remove it eclipse wants me to import Jul 18 00:42:05 zipalign -v 4 your_project_name-unaligned.apk your_project_name.apk nothing asked me where to put a new apk file. I have not file named -unaligned.apk? am I to assume this unaligned.apk is the one in the project folder under /bin/res? Jul 18 00:42:24 Tryer: then there is probably an error with one of your xml files. Sometimes eclipse won't show the xml file error correctly. Jul 18 00:42:46 yeah Clean, clean, clean.. That's the main thing I learned tonight ;) Jul 18 00:42:48 He says he has R.java Jul 18 00:42:54 which means no xml errors Jul 18 00:43:14 What does eclipse want you to impot if you remove android.R Jul 18 00:43:23 xml file located in http://pastebin.com/aUBt7Riw http://pastebin.com/vAk3f7n1 thx for all the help gus Jul 18 00:43:35 I think that is your problem, you don't import the R.java class, and none of my projects has that import Jul 18 00:43:46 I guess this is using the eclipse plugin, it does not ask me where to put any new apk files Jul 18 00:44:01 Tryer: are you sure your package name is correct? Jul 18 00:44:04 maybe you can specify with ant or some command line stuff but not with the plugin Jul 18 00:44:06 I don't know Jul 18 00:44:16 mwebView = (WebView) findViewById(R.id.webView1); you don't have a id of webView1 Jul 18 00:44:28 android:id="@+id/WebView" Jul 18 00:44:37 your id is WebView, the layout is at least Jul 18 00:44:49 oh aparently the plugin does the zipalign thing Jul 18 00:44:50 er, that isn't a layout, thats a WebView Jul 18 00:45:02 2 sec dlaroche and t-dub. What do you mean by having a id of webView1? And that is the correct package name? Jul 18 00:45:20 Tryer: first change line 19 Jul 18 00:45:24 ^18 Jul 18 00:45:40 should be mwebView = (WebView) findViewById(R.id.webView); Jul 18 00:45:43 ok I'll assume the one in the project folder is the fixed apk file and upload and attemp to install it Jul 18 00:45:47 hey, I am having a bit of trouble with permissions for su/busybox; i am setting suid and can see the correct permissions, but hten i pack the img and flash it but on the device the permissions are just 0755 and root doesnt work. any ideas? Jul 18 00:46:01 actually it should be: mwebView = (WebView) findViewById(R.id.WebView); Jul 18 00:46:06 remove android.R, import com.R Jul 18 00:46:49 What f1prateek said, but I don't think you need to import com.R Jul 18 00:47:01 you need it fro the layout Jul 18 00:47:02 None of my projects import the R.java class, maybe my api doesn't require it? Jul 18 00:47:06 hoow my pc is melting, sorry for slow answering Jul 18 00:47:15 none of my projects import my R.java class Jul 18 00:47:16 its the bridge between xml and java Jul 18 00:47:18 snap_: try #android-root Jul 18 00:47:35 generally it is impot .R Jul 18 00:47:40 *import Jul 18 00:47:52 Doing remove adroid R and changing line 18 now mwebView = (WebView) findViewById(R.id.WebView); Jul 18 00:47:52 dlaroche: got no help there; seems a little dead Jul 18 00:47:58 you shouldn't import R!!! Jul 18 00:48:26 no import now, but eclipse still wants me to import Jul 18 00:48:36 not the android.R, but .R Jul 18 00:48:40 Tryer: clean the project Jul 18 00:48:40 kk Jul 18 00:48:44 f1prateek, maybe I'm wrong, but I use R.layout.id and what not, but I don't import any R http://pastebin.com/uaC3Q2s8 Jul 18 00:48:45 dlaroche: you don't need to, but it is not wrong to do it.. but needs to be the right R ;-) Jul 18 00:49:30 T-dub and it works? Jul 18 00:49:31 snap_: you won't get help here with that question Jul 18 00:49:33 f2prateek, line 128 and the next few lines all use R Jul 18 00:49:34 yes Jul 18 00:49:35 all my applications have the R Jul 18 00:49:39 I get an error if I import R.java Jul 18 00:49:44 api level 8 Jul 18 00:50:01 where do i clean project dlaroche? Jul 18 00:50:08 ow great.. All the way at the end of the tutorial: mSoundManager.addSound(1, R.raw.sound); Jul 18 00:50:14 and of course.. Insta-errors Jul 18 00:50:15 Project -> clean Jul 18 00:50:24 forget it, found it Jul 18 00:50:25 Tryer: damn noob questions! Project, Clean Jul 18 00:50:26 thx Jul 18 00:50:29 this is a big example, but this imports R http://pastebin.com/bYrt1pCF Jul 18 00:50:39 noob question from a noob :) Jul 18 00:50:59 Weird, do you get an error if you remove the R import? Jul 18 00:51:00 Tryer: you have got to learn to read a little if you are going to learn Android Jul 18 00:51:03 yeah Jul 18 00:51:07 it ask me to import R Jul 18 00:51:09 aight, cleaned project, ecclipse still wants me to "import R" if i remove R import Jul 18 00:51:26 but it shows me towo options Jul 18 00:51:30 the one for my package Jul 18 00:51:31 Ofc, i'm ready to read whatever :) Jul 18 00:51:33 and one for android Jul 18 00:51:49 Anyone know how I can detect when the android alarm clock sounds from my app? I have an app that plays audio and the audio needs to pause when the alarm goes off. The alarm on the device in question, sadly, doesn't request audio focus. Jul 18 00:52:13 f2prateek, is your R.java class inside a folder called "gen" Jul 18 00:52:18 yeah Jul 18 00:52:19 will "match_parent" throw an error if it is the root layout?? Jul 18 00:52:27 it generates automatically Jul 18 00:52:29 from the xml Jul 18 00:52:35 yeah. Jul 18 00:52:40 dlaroche project cleaned, what is the next move? still wants me to import 'R' (android) Jul 18 00:52:58 wow that's weird. If I try to import R it gives me an error and asks if I want to create a class named R Jul 18 00:53:10 Tryer: check in the gen folder, does it have R.java? Jul 18 00:53:14 or it can do this import com.example.package.R; Jul 18 00:53:18 yes it has f2prateek Jul 18 00:53:22 Ok, I'm 95% there! All I got now is 1 error.. "raw cannot be resolved or is not a field" at line 20 http://pastebin.com/03McRtWC Jul 18 00:53:24 Tryer: instead of "match_parent" change that to "fill_parent" in your xml Jul 18 00:53:34 so yeah import that Jul 18 00:53:41 whats your packagename? Jul 18 00:53:50 i think his package name is com Jul 18 00:54:00 then try import com.R; Jul 18 00:54:03 yeah. i want to see the project setup/layout Tryer Jul 18 00:54:14 you guys said I shouldn't use r.raw, since I don't know what I'm doing.. But, this is the only thing that's left for me to do, add a sound to the soundpool Jul 18 00:54:15 when i import com.example.package.R; i still get error on "webview" cannot be resolved to type Jul 18 00:54:16 "import com.R'" Jul 18 00:54:23 mm Jul 18 00:54:32 Why do I get the error, and what can I do to stop it? Jul 18 00:54:41 ThomQ: your sound files go inside the raw folder under res Jul 18 00:54:55 under yourproject/res/raw that is Jul 18 00:55:04 and then you use the asset manager to pull them out at runtime Jul 18 00:55:06 changing match_parent to fill parent now Jul 18 00:55:19 Tryer: then do another clean Jul 18 00:55:21 Is that it? I had my raw folder in the root... Jul 18 00:55:26 yes Jul 18 00:55:34 should be under "res" Jul 18 00:55:36 You can only have sounds in raw Jul 18 00:55:42 Yup, that was it... Jul 18 00:55:45 Thanks! :D Jul 18 00:55:46 and no caps allowed Jul 18 00:55:53 and don't start with a number Jul 18 00:56:03 yeah, its working now Jul 18 00:56:09 yeah that will confuse you for a long time. Good pointing that out T-Dub Jul 18 00:56:20 i didn't know you can't have numbers Jul 18 00:56:25 pissed me off for a while lol Jul 18 00:56:30 ccleaning now Jul 18 00:56:32 yeah i had the same issue too Jul 18 00:56:54 also i found out you can't have *'s in your file name when saving stuff. My soundboard wouldn't allow saving to sd card because of a * in the name :( Jul 18 00:57:12 interesting Jul 18 00:57:21 Didn't find that out untill someone asked me why they can't set x sound as a ringtone. Jul 18 00:57:24 still don't 100% get the code.. This tutorial built another java file, called soundmanager, wich is called upon to play add sounds to the soundpool, and play them.. Jul 18 00:58:01 in the import com.R; it wants me to create class 'R' Jul 18 00:58:03 Why would he have it set up that in the Main activity, you add the sounds, as well as play them.. Why not load them all at the beginning in the soundmanager.java? Jul 18 00:58:21 Thomq http://www.youtube.com/watch?v=ioGWpu8Ud7A&list=PL329463B81C221BE7&index=79&feature=plpp_video Jul 18 00:58:47 thanks.. This guy has pretty decent tutorials! Jul 18 00:58:56 yes he does. Jul 18 00:58:58 Tryer: why are you stuck trying to import an R file. Stop! It won't work Jul 18 00:59:18 someone said i should try to import package.R; Jul 18 00:59:42 dlarche, I agree with you, but for f2prateek he has to import it. Might matter your api? Jul 18 00:59:43 does anyone have a good webview tut, i may follow that step by step so you know that my setup isn't shit Jul 18 00:59:50 Tryer: is you are programming and setting things up correctly then you don't have to Jul 18 01:00:55 lol, ok I enter http://arksoft.org/MyFourthApp.apk and the phone says starting download then converts it to http://www.arksoft.orgMyFourthApp.apk/ and says page not available Jul 18 01:01:06 but when I enter that in the local brownser it brings up the save as box for starting a download Jul 18 01:01:37 it sure seems that nothing works as expected Jul 18 01:02:04 in the main.xml command is android:layout_width="100dp", the app start normal. later i try to change the width programmatically by putting editText1.setWidth(200); this doesn't work. any idea why and what i have to do? Jul 18 01:02:20 caverman: it doesn't work in Google Chrome browser either on my desktop Jul 18 01:02:36 caverman: that is server related Jul 18 01:03:14 hmm Jul 18 01:03:29 let me check again Jul 18 01:03:55 it downloads for me from firefox Jul 18 01:04:07 it might be who knows Jul 18 01:04:16 does anyone know how I would detect when the system alarm goes off? The samsung engineers told me I should be able to detect the intent somehow Jul 18 01:04:46 itslennysfault: with a broadcast receiver maybe Jul 18 01:05:52 Yea I was looking at that, but everything I see is when you SET the alarm intent. They want me to detect when the alarm goes off on the device. It's really their mess up but they want me to make up for it. Jul 18 01:06:02 This should be an easy question for you guys.. I need to change the button-setup, to work for a press anywhere on the screen.. I tried it, but couldn't seem to fit it in there without any syntax errors: http://pastebin.com/bynbt7WK Jul 18 01:06:15 ok chrome on my windows 7 found it and downloaded it Jul 18 01:06:17 (on samsung S2 the alarm fails to request audio focus... it does on the S3 line) Jul 18 01:06:31 so line 23 to 29, should be replaced with (a working version of) lines 33/35 Jul 18 01:06:55 http://www.arksoft.org/MyFourthApp.apk does this download for anyone else? Jul 18 01:06:58 itslennysfault: an intent is not the answer. If your app is not running, but you want to detect "something" like an alarm you need a broadcast receiver defined within your app to catch such activity Jul 18 01:07:15 @caverdude: Yup Jul 18 01:07:20 caverdude: yes, but now it has two .apk.apk Jul 18 01:07:34 that's strange Jul 18 01:07:36 Anyone got a good step by step tut on webview apps? Jul 18 01:07:47 its good here, filename-wise Jul 18 01:09:17 So what do you guys suggest; how should I insert the code to play a sound upon pressing the screen, instead of the button code? I tried deleting lines 23 through 29, and replace them with lines 33 through 35, wich seems logical for my not-too expierenced coder's eye.. Jul 18 01:09:25 But that doesn't work, of course :P Jul 18 01:10:28 Tryer: use the damn search engine bro! you will find one I promise :) Jul 18 01:10:50 dlaroche: any idea where I would look to find anything to lead me in the right direction for receiving the from the alarm app (or receivers for other apps in general)? Jul 18 01:11:05 yeah, the last one got me to that importing R thingy, but started over now, thanks for the time, i'll be back ;) Jul 18 01:11:12 itsleenysfault: I'm searching now for you, but unable to find anything Jul 18 01:11:38 everything I'm reading is for when you are receiving something that in initiated within the app Jul 18 01:12:15 got a question, what do you use as a 3D game engine under android ? (something that supports the 3DS Max files 3ds) Jul 18 01:12:24 unity3d Jul 18 01:12:26 hey my phone did download it Jul 18 01:13:34 @whatek: Unity3d doesnt support .3ds though.. It does support .max & .fbx though Jul 18 01:13:44 and, imo, is hands down the best engine for mobile Jul 18 01:15:13 ok well supposedly I installed it but I don't see any icons nor a way to run it Jul 18 01:15:32 the button on the left didn't allow me to run it, only the done button worked after install Jul 18 01:15:37 ThomQ, imo ? Jul 18 01:15:44 Ok, http://www.youtube.com/watch?v=AJc1pur3p7w i'm at 2.10, have done everything same as the tut, this must be something wrong with my sdk install ors omething? 'R cannot be resolved to a variable' Jul 18 01:15:47 caverdude: you have to go to your file manager, browse your sdcard, find where it downloaded it to, then run it from there, it will then install the app Jul 18 01:15:48 lol of course I don't know my phone well yet Jul 18 01:16:01 yes it said it installed it Jul 18 01:16:14 wathek: in my opinion ;) Jul 18 01:17:10 if I click it a 2nd time it ask me if I want to replace it Jul 18 01:17:12 ThomQ, I see Jul 18 01:17:18 so I guess it did install it Jul 18 01:18:27 don't you know any other 3D game engine except unity Jul 18 01:19:06 wathek: google "Android 3d game engines" Jul 18 01:19:50 ok after it says application installed there is an open button that is faded out, only the done button can be pressed Jul 18 01:19:59 wathek: jMonkeyEngine, jPCT-AE, Dwarf-fw, sio2 .. none of them come close to touching unity though Jul 18 01:20:20 Ok.. 99%.. I got the onTouch method wrong (line 23).. http://pastebin.com/hen0xLS7 Jul 18 01:20:40 I get a "Illegal modifier for parameter onTouch; only final is permitted" any body any idea? Jul 18 01:21:00 if there had been some problem with the app signing then it wouldn't have even installed right? Jul 18 01:21:14 @caver: You'd think so.. Jul 18 01:21:43 well the good news is that I actually deployed an app to my phone lol Jul 18 01:21:54 for some reason it can't run Jul 18 01:26:14 well I just found the market and lots of free apps for the first time Jul 18 01:26:27 lol thats how new I am to these Smart Phones Jul 18 01:27:20 is it easy to market an app? have any of you guys done so? Jul 18 01:27:42 I assume yes Jul 18 01:29:35 ok I'm getting the free weather underground? you guys like that one? Jul 18 01:30:43 is there a real difference between setting the OnClick event for a button in xml and setting an on click listener in the java? Jul 18 01:31:54 mysteryonxy: practically no, both ways work fine for me Jul 18 01:32:30 f2prateek ok thanks Jul 18 01:32:30 anyone here with an N7 who'd be willing to run my app and see if it runs in tablet mode ok? Jul 18 01:33:16 f2prateek I ask because in a button's xml, I set clickable to false, but it still can be clicked.. I'm thinking this is because there is an event listener in the code.... am I right? Jul 18 01:47:25 How long does it take google play to update to register your app has an update. Jul 18 01:47:40 If I browse my app in my web browser on my comp it says I have an update, but on my phone it doesn't. Jul 18 01:47:43 It's been a few hours now :( Jul 18 01:48:01 T-Dub: it can take a few hours Jul 18 01:48:08 lameee. Jul 18 01:48:21 Someone contacted me with a problem, and I fixed it. Just trying to have a fast turn around Jul 18 01:48:25 Been waitting on google :| Jul 18 01:49:11 It's funny, under apps where it says updates it shows, but when I click the app there is no update option Jul 18 01:49:28 yeah. it takes a bit sometimes. Jul 18 01:49:38 Hey awesome Andlytics updated Jul 18 02:00:31 is this the correct way to check if an edittext has no text in it? if(inputPassword.getText().toString() != "") Jul 18 02:01:19 ah it should be .equals() Jul 18 02:03:28 can anybody help me with a phonegap problem Jul 18 02:04:37 Maybe if I knew what that was :s Jul 18 02:04:45 I have a fragment that is displayed with getSupportFragmentManager().beginTransaction().add(R.id.case_detail_container, fragment, "CaseDetails").commit(); but when I do a findFragmentByTag for ("CaseDetails") it returns null. am I mis understanding how to find and grab ahold of a fragment ? what am I doing wrong ? Jul 18 02:06:02 drdeed: probably not in this room Jul 18 02:06:19 we are all Java and NDK developers pretty much Jul 18 02:08:18 dlaroche: any ideas on finding a wayward fragment? Jul 18 02:08:36 wayward?? Jul 18 02:09:13 https://gist.github.com/3960f25757c90d361929 is the code Jul 18 02:09:35 dlaroche: well it gets added, but then I can't get ahold of it just a few short lines later. Jul 18 02:10:04 line 19 of that gist bombs with an npe Jul 18 02:10:37 CodeFrair: cdf.getTag().toString() might work for you Jul 18 02:10:52 cdf is null Jul 18 02:11:06 dlaroche: sorry, it's faulting cause cdf is null Jul 18 02:11:18 I'm not sure then Jul 18 02:11:56 :( Jul 18 02:13:30 anybody a phonegap expert? Jul 18 02:16:55 drdeed: what did I just mention to you?? Jul 18 02:18:09 hi Jul 18 02:18:31 drdeed: go to #phonegap Jul 18 02:18:41 dlaroche: you don't happen to know how to refresh or reload a view do you ? Jul 18 02:19:01 invalidate() Jul 18 02:19:19 I set a button to enabled like this: btnRegister.setEnabled(true); however I cannot click on it.. any idea why? Jul 18 02:19:20 if i do arrayList.add(variable); arrayList.add(variable); will it add the same variable to both places? meaning to say that if i change variable they will both change? Jul 18 02:19:52 btnRegister.setClickable(true); Jul 18 02:19:57 ah thank you Jul 18 02:20:11 what's the difference between enabled and clickable? Jul 18 02:20:38 a button can be clickable but not enabled Jul 18 02:20:48 meaning it wont work Jul 18 02:20:51 ah I get it, thanks Jul 18 02:22:17 http://www.arksoft.org/java/phoneapps/android/ guys tell me if I got anything bad wrong here in this article.. if you don't mind.. its not long Jul 18 02:22:24 thanks Jul 18 02:23:59 it sounds a little narrative Jul 18 02:24:16 usually articles dont use "i have heard" Jul 18 02:24:36 or any form of first person, I, me etc Jul 18 02:24:57 but it thats what your going for thats fine Jul 18 02:25:03 caverdude: break that last paragraph up into smaller ones too Jul 18 02:25:09 Getting 403 error caverdude Jul 18 02:25:25 ok Jul 18 02:25:38 AIC ya some people do, not sure why.. Jul 18 02:25:58 I mean some folks claim to not be able to access my site from within the corp for example Jul 18 02:26:06 whats 403? Jul 18 02:26:32 Belacan, ya, thats kindof what I'm gong for I suppose Jul 18 02:27:19 caverdude: second bullet Use something like Jet to compile Java to native code maybe. (not sure abou this one at all.) Jul 18 02:27:28 I'm assuming you mean "ABOUT" not "abou" Jul 18 02:27:36 reload, I just fixed that Jul 18 02:27:47 Ah Jul 18 02:27:50 Alright. Jul 18 02:27:57 caverdude: access to resource forbidden Jul 18 02:28:00 I think split the last paragraph into smaller ones some how. Jul 18 02:28:10 Then i'd include some kind of indication at the beginning, like.. "last summer.." or something to declare that your going to be talking about your experience, maybe the title could be my experience with.. Jul 18 02:28:16 It was a bit unpleasant to read Jul 18 02:28:45 On a side note caverdude, do you want some help with your development? It appears you are having some trouble based on your article. Jul 18 02:29:22 a narrative style tends to be better for interesting stories Jul 18 02:29:58 reload it again fix a few things Jul 18 02:30:29 10x better alreadty Jul 18 02:30:44 :) ty Jul 18 02:31:07 i ordered a 16GB N7 and then i cancelled the order Jul 18 02:31:10 Personally I like multiple spaces. It appears all your paragraphs are one one space apart. If possible, my suggestion based on my own preferences, would be to do different "topics" per-say and have them spaced out by a few spaces. Jul 18 02:31:11 and now i have no idea if it's coming Jul 18 02:31:17 because they havent confirmed the cancellation Jul 18 02:31:18 ~_~ Jul 18 02:31:21 T-Dub, well, i'll check back in a day or so after I try some other demo app Jul 18 02:31:46 Let me see if I can give you an example. Jul 18 02:31:54 caverdude: is there a direct link to the article, e.g. index.html or something Jul 18 02:32:04 guys: byteList.add(new int[5][2]); now how do i access this new int? byteList(1) ? Jul 18 02:32:07 Inbetween your first and second paragraph, do a double space. Jul 18 02:32:09 I'll throw in a header before the last part that says, "My experiences thus far with phone apps" Jul 18 02:32:19 Inbetween the bullet paragraph and the one under it do two spaces Jul 18 02:32:23 AlCapwn, that should have been it Jul 18 02:32:26 yeah that'll be good Jul 18 02:32:32 AlCapwn, can you access http://arksoft.org? Jul 18 02:32:41 And under that paragraph (the one under bullets) do two spaces. Jul 18 02:32:51 T-Dub, ok Jul 18 02:32:54 As you begin to talk about a different sub topic I would suggest more spaces. Jul 18 02:33:06 If your next paragraph has the same general topic there is no need to do multiple spaces. Jul 18 02:33:17 I get 403 error caverdude Jul 18 02:33:28 I'm on my home WiFi Jul 18 02:33:32 Alcapwn, have you tried turning your computer off and on? Jul 18 02:33:55 403 is a server side response Jul 18 02:34:03 You're mad. Jul 18 02:34:31 (For the record I'm being an ass, sarcasm) Jul 18 02:34:37 ok reload again Jul 18 02:35:00 Exactly what I ment. Jul 18 02:35:18 In my opinion it is easier to read things when you do that general idea. Jul 18 02:35:22 AlCapwn, hmm, you might be banned lol Jul 18 02:35:26 I had trouble with a spammer Jul 18 02:35:34 Still getting error, probably a sign I should go to sleep Jul 18 02:35:45 ^brutal Jul 18 02:35:51 Wasn't me spamming lol Jul 18 02:36:21 Anyways, good night Jul 18 02:36:26 AlCapwn, sorry, I'll loosen some ip allow/deny settings Jul 18 02:37:08 saurik: are you alive? Jul 18 02:37:14 T-Dub, well I've fixed the captcha code since then and forgot to loosen things back up I think Jul 18 02:37:32 yea repo is awesome Jul 18 02:37:35 Downloading prebuilt: 101% (997MB/987MB) Jul 18 02:37:51 good one caverdude Jul 18 02:37:54 looks good now Jul 18 02:38:04 Ah Jul 18 02:38:06 Belacan, ah thanks, and thanks for the help Jul 18 02:38:17 is there a SANE way to get the android sources because repo is the biggest pile of shit ive ever seen from google Jul 18 02:38:25 though i think your second header is a little bit Jul 18 02:38:34 bigger than the first Jul 18 02:39:05 is there a way to store an object in a bundle? I need to store a reference to my fragment so I can access it ... Jul 18 02:39:30 Yes Jul 18 02:39:37 Let me get a sample code, sec. Jul 18 02:39:47 You add things to the intent I believe Jul 18 02:40:58 wish the fuck google used subversion for this instead of git Jul 18 02:40:59 http://pastebin.com/WX2mcUem CodeFriar Jul 18 02:41:10 subversion?!? Jul 18 02:41:12 that way i wouldnt need to download 9 gigs of shit Jul 18 02:41:15 wtf is this the 90s? Jul 18 02:41:23 ^ what I was thinking Jul 18 02:41:23 do you have any idea how large the AOSP tree would be in subversion? Jul 18 02:41:38 mark4: you've obviously never used svn for a large project Jul 18 02:41:47 the tree would be fine and we wouldnt have to download the entire freeking repository Jul 18 02:42:03 subversion is FINE for large projects Jul 18 02:42:06 Torvalds couldn't possible have used svn Jul 18 02:42:16 JakeWharton: svn and its branches... and tags.. that would be fun :D Jul 18 02:42:16 *possibly Jul 18 02:42:24 mark4: lol. SVN would kill it Jul 18 02:42:26 pboos: and merges Jul 18 02:42:34 merges would be damn near impossible Jul 18 02:42:37 JakeWharton: oh yeah.. you will drink a lot of coffee or have a lot of free time :D Jul 18 02:42:45 and having to download 9 gigs any time you want anything... that doesnt kill it? Jul 18 02:42:46 mark4: also, even git doesn't keep up with Google's needs Jul 18 02:42:50 Belacan, yes it is, it was H1 Jul 18 02:42:59 mark4: you don't need to download 9 gigs every time Jul 18 02:42:59 I guess I'll make it h2 Jul 18 02:43:09 or h3 even Jul 18 02:43:10 just keep the old copy Jul 18 02:43:16 because the main title should be at the top Jul 18 02:43:20 i have no repository here. repo sync is downloading the ENTIRE repo Jul 18 02:43:31 mark4: then establish one and keep copies? Jul 18 02:43:34 unless theyre different Jul 18 02:43:42 ya thats better Jul 18 02:43:51 mark4: repo just calls git a bunch of times Jul 18 02:43:53 tell me how to NOT need to download the ENTIRE freeking repo Jul 18 02:44:06 because googles "get the sources" page aint telling me how Jul 18 02:44:17 and my nice 4g phone is maxing at 38k per second Jul 18 02:44:32 that's how git works Jul 18 02:44:33 we Jul 18 02:44:33 l Jul 18 02:44:34  Jul 18 02:44:35 welcome to DVCS Jul 18 02:44:44 ^ +1 Jul 18 02:44:55 it's a bit of pain to setup the initial repo, then it's nice and fast Jul 18 02:45:01 i know what repo does. tell me how to make repo download something other than the ENTIRE fucking history of android Jul 18 02:45:10 repo doesn't download anything Jul 18 02:45:21 ok fucking split hairs Jul 18 02:45:36 i just did Jul 18 02:45:37 Downloading prebuilt: 102% (1003MB/981MB) Jul 18 02:45:39 mark4: impossibiru. Git will *clone* the repository, not copy latest version... because, surprise, it's a tool for devs Jul 18 02:46:03 my .repo after 5 days of downloadikng is now corrupted and wll probably have to be deleted Jul 18 02:46:19 greets folks. Jul 18 02:46:20 how do i get ONLY the latest version Jul 18 02:46:24 you need a better connection Jul 18 02:46:27 insterad of the ENTIRE FUCKING corrupted history Jul 18 02:46:29 YOU can't Jul 18 02:46:36 the history cannot BE corrupted Jul 18 02:46:42 git is a directed acyclic graph Jul 18 02:46:45 its corrupted right here Jul 18 02:46:54 Downloading prebuilt: 102% (1003MB/981MB) Jul 18 02:47:03 I have an extremely n00b question, and I apologize in advance but I'm having a bit of confusion between views/content/activities/etc. Jul 18 02:47:19 mark4: does it outright say so? If not, the 102% is probably an artefact caused by compression somewhere Jul 18 02:47:26 I have an app I created with one .xml file with a layout, of course Eclipse created a class for it with an onCreate event Jul 18 02:47:34 If I had the power to reach through the internet and punch someone in the face it would be you… except it probably wouldn't work since your connection corrupts everything and I'd end up patting you on the back. Jul 18 02:47:43 thats sucking DICK right there. ive been downloading that for days because the ONLY fucking internet i have is via my 4g phone getting dialup speeds because vzw has THEIR head ujp their ass Jul 18 02:47:47 I have an additional view I created which is another "screen", which I can successfully switch to with setContentView... but how do I assign it an onCreate event? Jul 18 02:47:48 @JakeWharton LMAO Jul 18 02:48:05 I am doing both in one activity if possible. Jul 18 02:48:17 i woluld like to build the android sources. i have NO fucking interest in android version .00000001 Jul 18 02:48:36 yet i have to download it and every other checkin to the repo from the dawn of history Jul 18 02:49:37 how do i clone just the latest version not the entiren fucking repo Jul 18 02:49:37 mark4: then ask someone to make you a tarball of just the latest version Jul 18 02:49:38 Git improves a lot of Subversion's shortcomings, and also takes a big steamy shit on its simplicity at the same time Jul 18 02:49:47 On behalf of the entire internet I would like to apologize for Google using a superior version control system to manage their extremely large and highly iterated upon produce in a way to make their lives easier but neglected to take into account the needs of a single individual in the middle of nowhere using a 4G connection to download the source tree. Jul 18 02:49:54 p_l|backup, no. im not downloading off some random guy off the net Jul 18 02:49:57 mark4: have you used a VCS before? like ever? Jul 18 02:50:04 bah colloquy/mac autocorrect fail Jul 18 02:50:16 *product Jul 18 02:50:25 even with subversion I have tarballs of major releases, and I'll download one and then update from there to the latest revision... all version control pretty much works on patches Jul 18 02:50:28 C0deMaver1ck, ive probably used more version control systems than you even know about Jul 18 02:50:28 mark4: then spin up a VPS somewhere (even micro instance on EC2) and make one yourself Jul 18 02:51:02 C0deMaver1ck: he's emailed more zip files than you even know about Jul 18 02:51:16 mark4: git wasn't designed for your use case... at all Jul 18 02:51:16 JakeWharton: ;) Jul 18 02:51:22 git is the worst just for forcing you to mirror the entire fuking history of every fucking file ever modified since the stoneage Jul 18 02:51:39 mark4: many of us prefer it this way. Sorry Jul 18 02:51:58 mark4: i'll happily mail you an IOMega JAZZ disk of the latest tree if you'd like Jul 18 02:52:01 I knew I should've started svnhub.com earlier... oh well Jul 18 02:52:09 right. many of you have a real, stable internet connection. Jul 18 02:52:14 <3 http://svnhub.com Jul 18 02:52:30 jake you still use those monsters? Jul 18 02:52:38 are they still subject to the click of death Jul 18 02:52:39 ? Jul 18 02:52:48 mark4: I consider your 38kb a luxury. For a long time, 1kb/s with 3s ping was what I had Jul 18 02:53:02 even with that, I prefered git Jul 18 02:53:08 p_l|backup, yes i had dialup too. 2k ps was a good day Jul 18 02:53:11 git allows you to develop offline Jul 18 02:53:15 you should be glad they use it Jul 18 02:53:18 so does svn Jul 18 02:53:21 or DVCSes in general Jul 18 02:53:29 really? can you commit, merge, branch? Jul 18 02:54:17 I think if my workplace moved away from git to anything other than hg, I'd quit Jul 18 02:54:20 I can create a new repository, create 500 branches change files on all of them, rebase them all over each other, cherry-pick around, and merge them all back together before touching a TCP/IP connection Jul 18 02:54:47 so you can tie yourself a gordian knot. awesome Jul 18 02:54:58 I can also prove P=NP Jul 18 02:55:00 BOOM Jul 18 02:55:03 N=1 Jul 18 02:55:05 QED Jul 18 02:55:12 R=1/R+1 Jul 18 02:55:15 whatever Jul 18 02:55:21 still doesnt help me Jul 18 02:55:35 mark4: also, the "branching like crazy" works in Git. Enough that people will make branch per feature then merge it back Jul 18 02:55:39 you should stop talking, you're wasting bandwidth that git could be using :D Jul 18 02:55:42 or the fact that this repo sync is sucking donkey Jul 18 02:55:51 I think it's actually enforced style at google, sort of Jul 18 02:56:09 we do that too. all changes are on a branch with a pull request to master Jul 18 02:56:48 after 6.4g downloaded over the past few days im now being told its downloading 104% of the current whatever its down loading Jul 18 02:56:49 ^ that's how we do it at work Jul 18 02:57:10 which probably meas my entire .repo directory is fucked Jul 18 02:57:22 mark4: not entire Jul 18 02:57:28 and probably not at all Jul 18 02:57:43 at worst, only the one part you were dowloading at the moment, which is dubious Jul 18 02:57:49 Downloading prebuilt: 104% (1021MB/981MB) Jul 18 02:57:49 mark4: it's mostly a bunch of git repos Jul 18 02:57:54 git supports shallow clones Jul 18 02:57:58 you can probably look that up Jul 18 02:58:10 actually, I suspect the 104% bit is caused by the repository growing over the time it was downloaded Jul 18 02:58:11 so how do i shallow clone the android sources Jul 18 02:58:20 give me the latest and nothing else Jul 18 02:58:29 clone each of the 250 git repos individually Jul 18 02:58:32 so the 100% is what it had counted when you starteed loading Jul 18 02:58:32 enjoy Jul 18 02:58:59 but in meantime the repository has grown, so it got more to download Jul 18 02:59:05 mark4: dunno, check the repo options **** ENDING LOGGING AT Wed Jul 18 02:59:58 2012