**** BEGIN LOGGING AT Wed Mar 19 02:59:58 2014 Mar 19 03:01:11 my dog jake says he's excited about wearables too. he wants a google collar Mar 19 03:01:56 So what do you think of Android Wear? Mar 19 03:01:58 ahaha loser Mar 19 03:07:22 bankai_ if jake wears and android collar, and your dogs do too, they could probably send messages to each other Mar 19 03:07:57 bankai_ they could also let you know when they are hungry, say when you're not around Mar 19 03:08:01 is google going to announce a nexus device for it Mar 19 03:08:03 or just the os? Mar 19 03:08:04 "activate food beacon" Mar 19 03:08:09 Nexus Watch? Mar 19 03:09:07 g00s: hahaha oh that's hilarious.... which reminds me, i have something to show ya Mar 19 03:09:21 g00s: http://i.imgur.com/Mzhl8F4.jpg Mar 19 03:09:43 tahn again i don't see the point to smart watch Mar 19 03:09:46 isn't your phone enough? Mar 19 03:09:52 bankai_ XD Mar 19 03:10:17 what i worry about is the watches haveing a tiny battery Mar 19 03:10:19 and tiny battery life Mar 19 03:10:58 they won't be doing all that much though Mar 19 03:12:23 yeah Mar 19 03:12:35 so, I'm using android studio for the first time (coming from eclipse).. I can't figure out why I'm getting this error: Mar 19 03:13:12 java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.app/com.example.app.MainActivity}: java.lang.NullPointerException Mar 19 03:13:12 it happens when I have a button and I use a "setOnClickListener" Mar 19 03:14:16 if I comment out the setOnClickListener method, it works fine Mar 19 03:19:59 what line causes the NPE? Can you pastebin the whole stacktrace? Mar 19 03:21:23 laphlaw: Mar 19 03:23:18 sure.. one sec Mar 19 03:26:15 codeguru: http://pastebin.com/qJ5W2Tds Mar 19 03:27:01 Now pastebin your MainActivity and show me where line 25 is. Mar 19 03:27:27 > at com.example.app.MainActivity.onCreate(MainActivity.java:25) Mar 19 03:30:24 codeguru: http://pastebin.com/9PM0kFxC Mar 19 03:31:00 killAlarm is null for some reason Mar 19 03:31:14 let's look at your layout file next Mar 19 03:31:24 activity_main.xml Mar 19 03:31:45 hmm Mar 19 03:32:12 there is no button inside activity_main.xml Mar 19 03:32:19 that's the problem! Mar 19 03:32:20 A question regarding testing: if I were to have some extra Activities to be run during the instrumentation Test then where do I declare them? src/main/AndroidManifest.xml or src/androidTest/AndroidManifest.xml ? Under the new build system with gradle you are not supposed have any Manifest file under any folder other than BuildTypes Mar 19 03:32:28 its inside fragment_main.xml Mar 19 03:33:09 are you using fragments? Mar 19 03:33:49 hah, I'm really new to all this.. I don't really know what they are. I just used a generated template from android studio Mar 19 03:33:58 oic Mar 19 03:34:24 I suggest you delete your current main_activity.xml file and rename fragment_main to main_activity Mar 19 03:34:50 don't worry about fragments yet since you are just learning. They are a fairly advanced feature, IMO Mar 19 03:34:53 so I guess when you start a new project, it defaults to use the frament_main? Mar 19 03:35:12 I guess so. I'm not very familiar with AS. Mar 19 03:35:45 you use eclipse? Mar 19 03:35:49 MohitKanwal: What do you mean by "extra activities" Mar 19 03:35:51 laphlaw: yes Mar 19 03:36:25 that's what I used to use.. however I couldn't get it to correctly import some 3rd party jars I was using correctly.. it would crash and complain it couldn't find them Mar 19 03:36:27 codeguru: extra activities meaning launching some mock activities Mar 19 03:36:38 are they activities not in your main app? Mar 19 03:36:40 yes, AS defaults to setting up a fragment based activity. Just nuke it to a base activity if you don't want fragments. Mar 19 03:37:04 codeguru: they are not activities in my main app Mar 19 03:37:07 are thre templates you can select from with AS or is that just it ? i swear it used to have options Mar 19 03:37:14 laphlaw: oic...AS is supposed to be quite good. I just have only started looking at it. Mar 19 03:37:47 so my AndroidManifest.xml for src/main does not have them Mar 19 03:37:56 ic Mar 19 03:38:06 i was hoping we'd get an AS update today along with the SDK and gradle plugin. i'm dismissing internal IDE errors like every 15 minutes Mar 19 03:38:12 I'm not sure about the answer to your Q. I haven't used gradle much yet. Mar 19 03:38:19 g00s: IJ doesn't have those problems Mar 19 03:38:26 hehe Mar 19 03:38:39 sup guys, time to work on the project Mar 19 03:38:42 :) Mar 19 03:39:15 man, i would like to see these guys adopt some even / odd numbering scheme, like 0.x.y where x => even based on intellij stable, odd based on EAPs Mar 19 03:40:02 and for even x, then .ys are ONLY bugfixes Mar 19 03:40:38 laphlaw: You should also look at the onClick attribute that you can add to a button in XML Mar 19 03:40:51 oh no, don't use onClick Mar 19 03:41:24 the ONLY fucking bug crash i ever had with my app in Play, was forgetting to wire up one of those suckers :) Mar 19 03:41:38 and it doesn't work with fragments Mar 19 03:41:47 it does work, it just doesn't do what you expect Mar 19 03:41:53 because fragments are stupid things Mar 19 03:42:21 I've gotten it to work with fragments just fine Mar 19 03:42:32 you haven't Mar 19 03:42:34 you have to put the onClick in the Activity class Mar 19 03:42:47 exactly, breaking the modular and re-usable model Mar 19 03:43:19 I still *have* gotten it to work Mar 19 03:43:31 good design is another issue Mar 19 03:43:41 hey g00s Mar 19 03:43:48 hi jareddlc Mar 19 03:43:56 i believe you gave me code to run preference as activity Mar 19 03:44:06 it was very short :) Mar 19 03:44:07 is there a way i can load a splashscreen before hand Mar 19 03:44:13 becuase i get this wierd bug Mar 19 03:44:14 in any case, g00s is right, never use onClick in XML Mar 19 03:44:18 just say no to splash screens ! Mar 19 03:44:20 when i want to grab paired devices Mar 19 03:44:33 probably some crap an intern wrote and they accidentally shipped out of pity Mar 19 03:44:51 or better yet Mar 19 03:44:58 i havent got into persistence yet Mar 19 03:45:12 is it possible to save paired devices and overide the given array? Mar 19 03:45:39 jareddlc a Bluetooth device class is really a wrapper for a string of the form aa:bb:cc:dd::ee Mar 19 03:45:51 so you can save the addtess to prefs as a string Mar 19 03:46:22 for persistence Mar 19 03:46:24 and then, when you need to read it, just create the BluetoothDevice class from BluetoothAdapter, given the string you saved in prefs Mar 19 03:46:31 what do i use Mar 19 03:46:34 sharedPrefs? Mar 19 03:46:43 i just save the address in shared prefs, yeah Mar 19 03:47:04 BluetoothAdapter has a handy method for checking validity of addresses too. Mar 19 03:47:19 hmm looks like im learning sharedPrefs Mar 19 03:47:26 do i need a diferent class for that? Mar 19 03:47:50 different class? Mar 19 03:49:00 https://github.com/jareddlc/TurquoiseBicuspid/blob/master/TurquoiseBicuspid/src/com/jareddlc/turquoisebicuspid/SettingsActivity.java Mar 19 03:49:12 im asking before googling :) Mar 19 03:49:18 can i use sharedprefs in that file Mar 19 03:50:20 the Preference framework works with SharedPreferences Mar 19 03:50:28 cool, becuase like Mar 19 03:50:31 i noticed Mar 19 03:50:59 btw, i would use another activity for selecting a BT device, not trying to stuff a listPreference Mar 19 03:51:05 like the BluetoothChat example Mar 19 03:51:09 if I enable BT in my app, and i turn it off in android settings, my app settings arent updated. so i guess at start i need to check the state and update it Mar 19 03:52:06 yeah, and listen to the broadcast too Mar 19 03:52:22 what type of activity would you suggest? Mar 19 03:52:52 i would rethink this though. Just have a preference 'Select Device' which has an intent to launch an activity, which lets you select a device Mar 19 03:53:02 in that activity, do the discovery Mar 19 03:53:26 im not doing any discovery Mar 19 03:53:31 im just grabbing paired devices Mar 19 03:53:44 in mine, i have a Tiny Activity which hosts a fragment, all the guys for discovery and selecting the device are in the fragment, its setRetainInstance(true) so that you can rotate the screen and the discovery process keeps working Mar 19 03:53:52 *guts Mar 19 03:54:44 jareddlc if you disable and then enable the BT adapter, isn't that list empty ? Mar 19 03:54:57 oh, paired will be there, yeah Mar 19 03:55:13 yeah im only looking and previously paired devices Mar 19 03:55:14 how's that working for you g00s? i've never had anything but greif using retaininstatnce state Mar 19 03:55:19 anyhow i let the user pair within my app also Mar 19 03:55:53 its code i dont wanna write :) Mar 19 03:55:57 alex_PP hmm. if i can rotate the device without crashing and leaking, win ! Mar 19 03:56:01 beucase then i need an activity Mar 19 03:56:05 and pass things around Mar 19 03:56:12 context* Mar 19 03:57:04 I shall repharse my question: Any ideas on how to declare a MockActivity inside androidTest of a Android Library Project without declaring it src/main?androidManifest.xml Mar 19 03:58:16 which is why i was asking for like spash screen Mar 19 03:58:26 during that i can get paired insert list without any wierd glitches Mar 19 03:58:35 maybe? Mar 19 03:58:42 dunno i guess its time to learn sharedPrefs Mar 19 03:58:53 splash screens ? :S Mar 19 04:00:02 does everyone hate splash screens :D Mar 19 04:00:13 jareddlc, yes Mar 19 04:00:15 it's not really an android thing Mar 19 04:00:15 hahah Mar 19 04:00:25 but i want to init my app Mar 19 04:00:28 working with BT on android is pretty difficult. lots of events, flakiness, you need really robust logic Mar 19 04:00:28 with current phone state Mar 19 04:01:14 great, my first project and im with the hard stuff Mar 19 04:01:26 soon i'll migrate this to ble Mar 19 04:01:29 low energy? Mar 19 04:01:39 possible with ble1123 module Mar 19 04:01:39 yeah, you have to anticipate all kinds of stupid stuff, like the user leaves your activity and disabled BT Mar 19 04:02:02 ble112* Mar 19 04:03:18 I think I will use product Flavor to maintain the separate AndroidManifest file declaring the test activity ref: http://stackoverflow.com/questions/21913619/test-specific-androidmanifest-file-attributes-and-extra-activities Mar 19 04:03:49 hey g00s Mar 19 04:04:04 what do u do to look if user change bt outside of app? Mar 19 04:04:37 the user can do anything, like even unpair a device Mar 19 04:04:48 i mean, thats contrived and stupid, but you have to handle it Mar 19 04:05:19 or they try connecting with something that is not on, etc Mar 19 04:05:27 the most infuriating thing with general BT is you can't query the current state Mar 19 04:05:30 you can only get updates Mar 19 04:05:45 hey dragorn Mar 19 04:05:53 if you care about a specific BT device you're pretty OK since your connections will generally just fail Mar 19 04:06:12 but if you're trying to monitor connection status that isn't your own... good luck. it sucks. Mar 19 04:06:20 yeah … but tahats tricky too. ACL_DISCONNECT can be really delayed Mar 19 04:06:40 typically a read from an inputStream will blow up very quickly Mar 19 04:07:47 yea Mar 19 04:09:07 g00s: Cannot make a static reference to the non-static method getSharedPreferences(String, int) from the type ContextWrapper Mar 19 04:09:41 my guess, its that it needs an activity? Mar 19 04:10:20 dragorn do you know whats supposed to happen to the device BT radio when the device goes to sleep, no wakelocks ? Mar 19 04:10:51 i can characterize this on the only device i have, but it isn't documented Mar 19 04:12:33 i'm guessing the radio goes off, and the connection is ended Mar 19 04:13:09 or at least i should assume the worst :) Mar 19 04:16:06 quick question Mar 19 04:16:51 addPreferencesFromResource(R.xml.preferences); is this related to sharedPrefs at all? SharedPreferences settings = getSharedPreferences(PREFS_NAME, 0); where PREFS_NAME == preferences.xml? Mar 19 04:19:35 doubt it. R.xml.preferences would be packaged with app on build. getSharedPreferences() draws from /data/data/myapp/ Mar 19 04:20:53 so then how do i load values, into the app with most recent phone state? Mar 19 04:21:29 i have defaults loaded from the XML, however when i use app a few times, and phone state changes, it may no longer reflect the actual state. Anyway to grab latest and override? Mar 19 04:21:55 you narrow down your ? recent phone state as in what? and R.xml.preferences would be final values, getSharedPref...() would be a more dynamic list of values Mar 19 04:22:21 well for example Mar 19 04:22:24 i turn on BT in my app Mar 19 04:22:30 the latest is what you read. so if something is stale, then the write isn't setup correct Mar 19 04:22:52 after some time, the user closes my app, and turns off BT outside of app. next app launch BT will think its on, but in reality its not Mar 19 04:23:16 then you setup broadcastreceivers to change update, or keep a service running Mar 19 04:23:59 to update change* Mar 19 04:24:02 so does there preferences.xml persist? Mar 19 04:24:38 in /data/data? yea til uninstalling app without the -k flag Mar 19 04:24:51 ok Mar 19 04:27:09 Hi, I'm wondering is there a way to check if the current device is using IPv6? I know i can scan through all interfaces and check if iPv6 is available, but is there a way to check if the current connection is actively on IPv6? Mar 19 04:29:21 g00s: i'm not sure Mar 19 04:32:21 bah i wish we could email people who report crashes :S i wanna ask this fella about the crash he got Mar 19 04:33:26 bankai_ did he add a note in Play ? Mar 19 04:33:35 yeah Mar 19 04:33:45 oh, not a comment, no Mar 19 04:33:50 yeah, that kinda sucks. i remember they used to show names, emails , right ? Mar 19 04:33:55 there was a big stink about names Mar 19 04:34:12 but why? when you sell something to somebody, shouldn't you get their name ? Mar 19 04:34:38 you weren't supposed to send marketing shit to their email unless they checked promotional stuff Mar 19 04:35:00 it would be easy enough to add an anonymous email address for this kinda stuff I'd have thought Mar 19 04:35:31 yeah, good idea Mar 19 04:37:08 so is there a way to check if ipv6 is turned on? Mar 19 04:37:29 dck28, check the addresses of interfaces that are up? Mar 19 04:39:34 so am i looking at the isReachable method in InetAddress class? Mar 19 04:39:42 how do i know the address is "up" Mar 19 04:40:25 this might be what you want Mar 19 04:40:28 https://developer.android.com/reference/android/net/NetworkInfo.html#getSubtype() Mar 19 04:40:36 if you can find the right numbers to match Mar 19 04:42:48 although, even once you've found an ipv6 interface Mar 19 04:43:25 there's no definite way to ensure your data goes over it, unless it's going to an inet 6 addr Mar 19 04:46:29 getsubtype wont help now i think about it Mar 19 04:47:37 yea... i know how to scan for IPv6 from this thread: http://stackoverflow.com/questions/10141638/best-way-to-check-if-ipv6-is-available Mar 19 04:48:01 but i'm not sure how to determine whether the device is indeed on it for communication Mar 19 04:48:21 i see Mar 19 04:50:41 hmm, so java 8 today huh Mar 19 04:51:49 dck28, i'm curious about why you'd need to know Mar 19 04:52:34 because some things might fail with IPv6, and it will be nice to prompt the user to switch over to IPv4 if that's the case Mar 19 04:53:02 i see Mar 19 04:58:45 hi, i'm developing a touch timer, when user doesn't touch display after 3 minutes app showes image Mar 19 04:59:25 when user touch display app delete timer... question.. what timer can i use? Mar 19 05:03:06 pfn i'm waiting for java 9 ! Mar 19 05:05:02 why does java 8 include a FS runtime? Mar 19 05:05:26 alex_PP FS ? Mar 19 05:05:36 FS? Mar 19 05:05:40 ih Mar 19 05:05:43 Oh Mar 19 05:05:44 JS Mar 19 05:05:48 can't type today Mar 19 05:05:59 can't hype? Mar 19 05:06:15 i think it was originally slated for java 7; not sure why though Mar 19 05:08:32 alex_PP maybe for scripting, like the way i would consider adding lua to a c app Mar 19 05:08:52 but as a core feature? Mar 19 05:09:51 oh java < 8 includes mozilla rhino Mar 19 05:10:10 Henrik Stahl answers here Mar 19 05:10:15 http://java.dzone.com/articles/project-nashorn-javascripts Mar 19 05:10:50 Where did the motivation for Nashorn come from? Mar 19 05:11:22 hmmm Mar 19 05:11:38 yeah Mar 19 05:16:59 invokedynamic Mar 19 05:17:14 is the motivation Mar 19 05:19:34 can't use nashorn on android, not interested Mar 19 05:20:20 I want to implement hiding and displaying tabs on list scrolling like in Twitter Android App Mar 19 05:20:33 Can anyone have idea about that? Mar 19 05:22:51 mygreymatter: you can kluge it with a listview Mar 19 05:22:54 I don't know how they did it Mar 19 05:23:21 you could offset your listview data by one and when its item 0, expand a tab selector view instead of an item view Mar 19 05:24:44 dragorn: I tried based on touch listener of the list. The hiding and displaying is not smooth like in Twitter Mar 19 05:25:08 Google Play(Android Market) currently requires certificates to be valid until 2033. Mar 19 05:25:11 ^^ Mar 19 05:26:58 mygreymatter: i'd prototype it w/ an array of data, a custom adapter, and expanding a different view for item 0. Should as smooth as anything else. I don't know what you're doing w/ a touch listener - might be fine, but I dunno what you're doing Mar 19 05:27:25 g00s: got good amount of bugs fixed Mar 19 05:27:30 now i just need to learn how to save Mar 19 05:27:42 from the list of paired devices Mar 19 05:30:31 jareddlc btw, you only need one sharedpref listener, you can switch on the key :) Mar 19 05:30:35 dragorn: My list is very complicated. It has already exclusive zero item. So I cannot change item. Thanks for guiding. I would give a thought to your suggestion. Mar 19 05:31:24 so shove your list up another one and have exclusive 0 and 1. The simplest way to dupe the twitter effect, anyhow. It looks like they hide it as if its a list item. Mar 19 05:31:46 pinned header is a bigger pain in the ass; this just looks like a sliding 0th item Mar 19 05:34:26 g00s: yeah unfortunalty sharedPrefs need an activity Mar 19 05:34:29 and my class doesnt have one Mar 19 05:34:41 they need a context Mar 19 05:35:59 yup, and i dont know how to pass on Mar 19 05:36:05 one without a contructor.. Mar 19 05:36:26 just do that Mar 19 05:36:47 butt, PreferenceFragment does have contructor Mar 19 05:37:23 uh Mar 19 05:37:37 O.o Mar 19 05:37:56 ? Mar 19 05:38:01 doesnt* Mar 19 05:38:19 it has an onCreate() Mar 19 05:38:42 after onAttach() you can say getActivity() for a context Mar 19 05:39:40 i dont have onAttach() Mar 19 05:39:51 is that an override inside PreferenceFragment? Mar 19 05:41:33 jareddlc time to read the docs :) Mar 19 05:42:34 hehe yeah Mar 19 05:42:44 just tying to be lazy here Mar 19 05:42:51 thx i;ll probably read about it tomorrow Mar 19 05:42:58 commit push time Mar 19 05:45:34 thx g00s again for the help Mar 19 05:45:50 np Mar 19 05:46:36 i should start playing with my TI sensortag Mar 19 05:47:39 bankai_ reading any good books ? Mar 19 06:17:05 Hi, I am newbie to Android development. I created a Hello World android project in ADT and later I modified it to contain a label, a text box and a button. When I try to get a reference to the button in the layout using findViewById I am getting a null value. What could be the issue? Here is the code - http://pastebin.com/ybeH4zjr Mar 19 06:18:27 The code contains just the default MainActivity.java code generated by ADT with just one line to get a reference to the button. And it looks like the button is in a fragment layout used by the main layout. Mar 19 06:32:33 As of now the best way to protect the assets folder is to encode it and decode it at run time and you can manage the keys in your java code. Mar 19 06:32:35 ^^ ? Mar 19 06:35:16 Is there anyway to play a sound with AnimationDrawabe? Mar 19 06:35:43 Drawable* Mar 19 06:37:30 b0br, depends what you mean by protect Mar 19 06:40:17 anybody know how to read files from an apps sandbox Mar 19 06:40:25 a Mar 19 06:40:28 @all Mar 19 06:41:10 anybody know how to read files from an apps sandbox Mar 19 06:41:11 anybody know how to read files from an apps sandbox Mar 19 06:41:18 i have a rooted nexus Mar 19 06:45:50 adb shell ? Mar 19 06:54:26 alex_PP decode assets at runtime and obfuscate code. is that the best we can do? Mar 19 06:54:54 i think so Mar 19 06:55:14 once you're on a rooted device anything can happen Mar 19 06:55:19 oh jeez the internet isnt sequre Mar 19 06:55:21 ;) Mar 19 06:55:59 can quantum computers crack RSA key stuff yet? Mar 19 06:56:31 b0br simple file a freedom of information request to find out Mar 19 06:56:34 they don't need to if your bundling the key with the encrypted data ;) Mar 19 06:57:14 yeah i realised that... Mar 19 06:57:23 i was talking bout the net in general there Mar 19 06:57:29 (^_^) Mar 19 06:57:51 naice Mar 19 06:58:08 thanks for info g00s ... naaaice Mar 19 06:58:42 entanglement can haz keep secrets? (^_^) Mar 19 06:59:01 anyone play Urban Terror ?? (quake3 mod) Mar 19 06:59:21 is there a loop better than for-loop to don't stop the app? Mar 19 06:59:48 for loop on a background thread Mar 19 06:59:55 if i=>1 {do this; i=i+1}? Mar 19 07:00:07 or is that while.... Mar 19 07:01:48 MalekAlrwily: sounds like what you're really asking for is a thread or asynctask Mar 19 07:03:12 ok Mar 19 07:04:00 what kinda data are you looping over? Mar 19 07:04:21 g00s: why do you always message me when i'm on the commute home? no. not reading anything... too busy with projects and stuff :( Mar 19 07:05:55 bankai_ your dogs said that was the best time :) Mar 19 07:06:07 did they also tell you they were hungry ? Mar 19 07:06:19 of course :) Mar 19 07:06:30 they are labs. they are always hungry :D Mar 19 07:06:38 silly Mar 19 07:07:54 does jake like celery ? these two love it ... and i mean REALLY love it Mar 19 07:08:22 jake loves everything. he'll even eat tabasco sauce Mar 19 07:08:36 aww there's something i could try ;) Mar 19 07:08:40 which i found out, in dismay, as i tried to apply it to a wound to discourage licking :| Mar 19 07:09:24 he almost died the first few weeks I got him; his owners had the wedding cake out and he got it Mar 19 07:09:35 chocolate Mar 19 07:09:38 lab Mar 19 07:09:50 oh lovely :( Mar 19 07:13:25 g00s, bankai_: again you and your dogs?! Mar 19 07:13:39 they run the world man Mar 19 07:13:51 they run across the world Mar 19 07:14:16 cats rule the world Mar 19 07:14:38 yeah, by spreading taxoplasmosis Mar 19 07:14:52 MUHAHAHAHA DEATH TO HUMANS!!! Mar 19 07:15:09 thepoosh: at least he's not bitching about AS gradle bugs Mar 19 07:15:19 I'm done with that shit Mar 19 07:15:26 gonna stay with fucking eclipse Mar 19 07:15:40 until death or full consumption of my RAM Mar 19 07:15:56 http://pastebin.com/QxXpgav3 Mar 19 07:16:00 hey, that shit worked well for me. i wanted to use the gradle build system though Mar 19 07:16:15 I use gradle on eclipse Mar 19 07:16:17 is there anything wrong in the code? Mar 19 07:16:20 just run the scripts myself Mar 19 07:16:21 that pastie makes my eyes hurt :( Mar 19 07:16:35 thepoosh how did you get eclipse to accept the new dir structure ? Mar 19 07:16:38 MalekAlrwily: what are you experiencing? Mar 19 07:16:43 hmmm Mar 19 07:16:51 I didn't change the dir stucture Mar 19 07:17:20 imagebutton background won't change :( Mar 19 07:17:30 ok so you used eclipse std structure and modified build.gradle to deal with it ? Mar 19 07:17:37 sourcets, etc Mar 19 07:17:47 my boss rewrote the build.gradle Mar 19 07:18:11 thats great. so if shit breaks you can just blame him Mar 19 07:18:16 yeah Mar 19 07:18:21 \o/ Mar 19 07:18:22 bosses are great like that Mar 19 07:18:45 PING!!! Mar 19 07:18:46 MalekAlrwily: your code just gave me cancer, why getResources every time instead of getting once?! Mar 19 07:19:31 why sleep on main thread?!?!?! Mar 19 07:19:41 maybe its tired Mar 19 07:19:43 mmm i love a good sleep on the main Mar 19 07:19:57 that is messed up Mar 19 07:20:02 thepoosh: Because i have 9*9 ImageButton's, from c1_r1 to c9_r9 Mar 19 07:20:03 and how you get ANRs Mar 19 07:20:17 you gotta sleep for 4.9 seconds or so just short enough not to trip the ANR Mar 19 07:20:29 hmmm Mar 19 07:20:36 it varies between devices Mar 19 07:20:52 :( Mar 19 07:20:55 MalekAlrwily 81 ImageButtons? time to rethink that, maybe custom view Mar 19 07:21:27 g00s: Are you have an idea? Mar 19 07:21:27 MalekAlrwily: sorry I'm an ass, but you should learn this as early as possible Mar 19 07:23:07 i have learned Mar 19 07:23:29 but i am developing a tutorial app for math Mar 19 07:23:31 and from now on, no sleep on the UI thread and no more getResources in loop Mar 19 07:23:50 and i need to make it as a tutorial Mar 19 07:24:14 so you should definitely NOT use bad practice Mar 19 07:24:23 Ok Mar 19 07:24:52 any idea? Mar 19 07:25:42 :( Mar 19 07:25:57 what are you trying to do? Mar 19 07:27:13 I am trying to color circles to explain multiplication process Mar 19 07:27:29 hmmm Mar 19 07:27:32 hmmm Mar 19 07:27:48 I would go on custom views and onDraw Mar 19 07:28:01 4*3: 4 columns and 3 rows and color circles between it Mar 19 07:28:23 understand my idea? Mar 19 07:28:35 if it's all the same thing, just inflate it and colour it with code Mar 19 07:30:49 bankai_: i want to color it in a fixed time Mar 19 07:31:02 that's not an issue Mar 19 07:31:19 sorry for my bad english Mar 19 07:32:24 thepoosh: Can you suggest a method better than it? Mar 19 07:32:41 hmmm Mar 19 07:32:46 :( Mar 19 07:32:47 custom views and onDraw Mar 19 07:33:54 How to create a custom view? Mar 19 07:34:55 ok Mar 19 07:35:08 i have found a method Mar 19 07:35:13 thx Mar 19 07:35:14 ? Mar 19 07:37:46 i have found a tutorial to create custom view Mar 19 08:02:27 How can I get the reference to another control in the on change method of the edittext control? Mar 19 08:06:21 any way to check the first play servers to have new app on or just have to wait to propergate Mar 19 08:07:14 g00s alex_PP all who help meh, its happening (^_^) Mar 19 08:08:33 hi suppose I setcontentview(R.layout.somelayout); then I want to modify some layout width in code in that view, how do i do this? Mar 19 08:10:38 goodwin does this help? http://stackoverflow.com/questions/9224927/how-to-set-edittext-box-height-and-width-programmatically-in-android Mar 19 08:11:02 sorry no this is edittext not layout Mar 19 08:11:23 sigh Mar 19 08:11:30 morning all Mar 19 08:15:19 b0br: thanks for the link, but what I want is to adjust the layout width based on other views in the same viewroot. Mar 19 08:16:27 goodwin...you are pro? (^_^) Mar 19 08:17:19 b0br: i think the main concern is how to apply back the changes so that the onlayout and onmeasure works Mar 19 08:17:54 <7JTAABRMY> do it after the views are drawn Mar 19 08:21:47 anybody knows how to keep the (soft) keyboard visible when a button on the action bar is pressed? Mar 19 08:36:10 mmm, looks like the keyboard only disappears after I invalidate the options menu Mar 19 08:45:11 and the solution is: hold the menu (as the documentation says), and do your change to the menuitem without going through invalidation Mar 19 08:45:23 i really love it Mar 19 08:49:46 7JTAABRMY: i did a search. there seems a number of conflicting ways for after the views are drawn. don't know which is best. Mar 19 08:51:59 7JTAABRMY: some say onGlobalLayout, some say onWindowFocusChanged, some say onViewSizeChanged, some say inside onResume(some say onResume not working). Mar 19 09:01:56 This is not strictly -dev, but just wondering why there is no "Write a review" under Reviews for apps I've downloaded? Mar 19 09:04:20 lasserix. Probably you've spammed with reviews? Mar 19 09:21:21 Did anyone handles the Kitkat Return STICKY bug yet? Mar 19 09:26:50 misterli i'm reading about some of those issues Mar 19 09:26:56 https://code.google.com/p/android/issues/detail?can=2&q=63618&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars&id=63618 Mar 19 09:27:06 um https://code.google.com/p/android/issues/detail?id=63618 Mar 19 09:27:27 what do you prefix/suffix a variable that needs to have the name of a keyword? Mar 19 09:27:49 forexample public Constructor(String package){} Mar 19 09:27:50 https://code.google.com/p/android/issues/detail?id=63793 Mar 19 09:28:26 the commonsware guys is kinda annoying in 63618 Mar 19 09:32:14 misterli , i lose hope in google when i see stuff like this Mar 19 09:35:02 ? yes, but why? Mar 19 09:35:02 misterli maybe we need to send this to androidpolice Mar 19 09:35:23 unless they already wrote about it Mar 19 09:35:27 Ive tried soo fucking many stuff, nothing works Mar 19 09:35:34 alarm timers, broadcastreceivers, etc. Mar 19 09:35:50 its pretty infuriating Mar 19 09:36:10 There's just one problem. Mar 19 09:36:15 Its not just killing the service Mar 19 09:36:30 Its killing the process. Swiping away is "OK" but when a background service dont come back, its frustrating. Mar 19 09:36:57 i did also try several receivers like battery receiver, connection receivers, etc. Calls to get it back but it's mostly not working and/or not a good solution Mar 19 09:49:51 misterli so what do you think, send to androidpolice to rattle the cage ? Mar 19 09:50:39 i think the bugs they have written about so far have been more 'user facing', this is a subtle one Mar 19 09:50:54 yes... Mar 19 09:51:03 Lots of apps dont work anymore since the bug. Like Facebook Messenger.. Mar 19 09:51:12 dumbasses Mar 19 09:51:29 Hi, I have a customer DialogFragment which contains a EditText. If the dialog is opened, the edittext must have focus and keyboard must be visible. The focus works (cursor is in the edittext) but keyboard won't come visible, I tried this one http://stackoverflow.com/questions/5105354/how-to-show-soft-keyboard-when-edittext-is-focused but doesn't work, what can I do to fix this? Mar 19 09:51:37 They require the developer to use GCM (and the new GMPP) Mar 19 09:52:00 But if you dont want to use it like facebook or me (they use xmpp, i do rest pushs) you can't do it anymore since you cant do a long polling.. Mar 19 09:52:27 facebook messenger uses MQTT Mar 19 09:52:39 They use both. Mar 19 09:52:54 how did you find this out? Mar 19 09:53:00 PM. Mar 19 09:57:19 could someone shed some light on how is it that listviews remember their position after an orientation change and onCreate being called Mar 19 09:58:36 rhcake they save their state in the onSaveInstanceState, like all views in the hierarchy Mar 19 09:58:47 override that without calling super, see what happens Mar 19 10:00:00 i see, ty Mar 19 10:03:16 Hi all, does somebody know a good tutorial to start using gradle? I have a project and need to impelemt/use a lib with gradle but don't know how to start with it Mar 19 10:03:58 FrancescoV well, the examples are a good spot :) Mar 19 10:04:25 see the bottom http://tools.android.com/tech-docs/new-build-system Mar 19 10:04:29 Hello all Mar 19 10:04:29 ad read the user guide Mar 19 10:04:53 g00s: thanks! Mar 19 10:05:28 Has anybody here been working with NFC ? Mar 19 10:06:50 yes Mar 19 10:07:35 Have you? I'm having some trouble with Beam on Jelly_Bean_MR2 (4.3) Mar 19 10:07:47 Can I run some things by you? Mar 19 10:07:52 Please? Mar 19 10:09:25 working perfectly in my sony 4.2.2 Mar 19 10:10:06 Yes, I have an implementation of LLCP/SNPE For ACS ACR122x readers. Mar 19 10:10:18 Works perfect on 4.2.2 but is broken on 4.3 Mar 19 10:11:10 Just wondering if Google have any public information about interfacing with Beam from a non Android device? Mar 19 10:11:34 My work is based on https://code.google.com/p/ismb-snep-java/ at the moment. Mar 19 10:13:04 Okay not idea of this library Mar 19 10:13:27 no* Mar 19 10:15:20 Hmm, yes the whole thing is documented very little. Mar 19 10:15:35 I've been trying to figure out how to program against Android by viewing the source. Mar 19 10:15:58 That didn't yield anything, surprisingly. Mar 19 10:18:14 hi, Webview: all link are opened in new browser. how can i open link in same view? Mar 19 10:22:37 i resolvem thansk.. Mar 19 11:03:30 is there a way to use android build in dictionary to spell check in my app? like method or something? Mar 19 11:08:29 google fucked up something in their last additions to IDEA 13.1 -.- Mar 19 11:08:50 I've sent like a dozen reports to google over the past 15 minutes since I updated Mar 19 11:08:56 I found that you can check but only user defined Mar 19 11:50:58 hi guys, i am building a dynamic spinner in my action bar and can't seem to find a way to pass itemid with the adapter so that i gets returned in onNavigationItemSelected, is that only supported via cursoradapter for some reason? Mar 19 11:57:10 I'm using andengine I try to use Text but sometimes it look weird https://www.dropbox.com/s/6kuqfadsn4eivs1/Screenshot_2014-03-19-12-51-10.png do you know why? Mar 19 12:08:55 hi guys/girls anyone of you using CirclePageIndicator I have problem trying to set the background of the points match the parent Mar 19 12:09:38 hi guys, I read a animations chapter today but I got confused in difference between frame by frame and transition animation. As I read that both are use for to slide the drawables with some delay in ms. Mar 19 12:09:38 Anyone here can who explain exact difference between them. Mar 19 12:11:36 Willams: you mean transformations like rotate ? Mar 19 12:13:04 No shmooz, I mean for sliding the drawables on same imageview with animation Mar 19 12:13:58 oh ok transitions like fade Mar 19 12:14:11 yup Mar 19 12:14:41 So Is there any difference between them frame by frame and transition Mar 19 12:14:43 so say i have rounded corners and i want the item to be selectable. the default selectable item does not support rounded corners. i have to copy/paste the drawables from the sdk into the my project and modify them right? Mar 19 12:14:45 Willams, frame by fame just means you define each fame of animation yourself and separately Mar 19 12:15:34 Mavrik : in transition also you define each frame in item Mar 19 12:16:31 um. Mar 19 12:16:39 what exactly were you reading? :) Mar 19 12:18:30 confused Mar 19 12:19:00 can you explain a bit please Mar 19 12:20:15 [13:09:38] hi guys, I read a animations chapter today but I got confused in difference between frame by frame and transition animation. As I read that both are use for to slide the drawables with some delay in ms. Mar 19 12:23:50 Mavrik : Are they same ? Mar 19 12:24:13 dude Mar 19 12:24:16 I'm asking you. Mar 19 12:24:20 where did you read that chapter Mar 19 12:24:37 so we can find out what exactly are you talking about since it obviously isn't what it's usually meant by those terms. Mar 19 12:25:06 I am getting nullpointer on trying to get a tag in an on click after I set it... make sense? Mar 19 12:26:32 I read that in one ebook Mar 19 12:27:24 In transition animation you use and for frame animation you use Hello, I was programming on android without problem, but when I did update of API 19 and install API >=3, an error occured when trying to compile for a 4.4 emulator. Mar 19 12:34:02 It say "ABI impatible". Mar 19 12:34:07 Hi... Does anyone know the how IPv6 breaks VPN establishment? Couldnt seem to find the root cause of this... If anyone knows a thread thats actively talking about it can you kindly point me to it? Thanks Mar 19 12:35:08 (On Qt for Android) Mar 19 12:42:16 the menu button in an action bar should show up when we have a hardware menu button right? Mar 19 12:42:50 3 dot menu? Mar 19 12:43:08 yeah Mar 19 12:43:31 that's when you dont have a hardware menu button Mar 19 12:44:09 http://www.xda-developers.com/android/menu-and-overflow-button-unification-could-mean-an-end-to-hardware-menu-buttons/. even in spite of this? Mar 19 12:46:53 It shows up if you have a hardware button on 4.4+ Mar 19 12:47:19 is that the guideline now, or googloe just doesnt give a fuck Mar 19 12:47:19 yup ^^ Mar 19 12:48:52 Unless your manufacturer changed it, that's just how it works Mar 19 12:49:02 Assuming you have menu items in it Mar 19 12:57:19 what is the best way to get the info for the user clicked on right now I am passing like 10 tags on each view... is there a better way? Mar 19 13:02:46 hi. I'm using mptfs to mount an adroid tablet in fedora 18. I tried to cp some files (100MB) from the PC to the tablet, and this happens: 1) the tablet displays a warning for a blink of a second (like a popup, too fast to be read) 2) The copying seems fine, i.e. I get no errors. 3) No file is actually copied to the tablet. Mar 19 13:02:51 if I use rsync instead of cp, I do get an error message and it seems that it cannot find the destination folder Mar 19 13:02:54 any idea how to solve this? Mar 19 13:21:52 what unit is the view.getMeasuredWidth() returns? pixel units? Mar 19 13:32:34 I need to distribute my app to some testers, what are the possibilities for that? Mar 19 13:41:18 FrancescoV: https://support.google.com/googleplay/android-developer/answer/3131213?hl=en Mar 19 13:43:31 I have used it a few times and IMO a good way to distribute a beta build to handpicked test users through the play store Mar 19 13:44:24 Of course, all depends on the number/skill of your beta testers Mar 19 13:45:54 god dammit Mar 19 13:46:03 damm u volley!!! Mar 19 13:50:31 Hey, does anyone have any experience with Bitmaps, Picasso, Image Blurring and RenderScript? I'm trying to blur a background of a row, (don't ask why) using an image downloaded through Picasso, using a BlurTransform transformation which uses RenderScript / ScriptIntrinsicBlur. Does anyone have any experience with Bitmaps and preventing OutOfMemory exceptions? Mar 19 13:51:27 My app crashes when I scroll up and down loads of times through the list, which will ever only be a maximm of 10 rows Mar 19 13:57:03 pduin: thanks, i'll check it Mar 19 14:05:56 What is the next best way to do image blurs on the fly without using RenderScript? Mar 19 14:11:03 hi can someone help me with creating 8*8 board ? Mar 19 14:13:51 DestinyAwaits: wat? Mar 19 14:15:41 thepoosh: pls wait posting the pic Mar 19 14:16:53 here http://cdn.marketplaceimages.windowsphone.com/v8/images/78fd5871-af88-4e7e-bf25-9c7a8622d51c?imageType=ws_icon_large Mar 19 14:17:51 I just need to create 8*8 board Mar 19 14:18:11 windowsphone.com? Mar 19 14:18:47 ah its just image Mar 19 14:18:49 bro Mar 19 14:18:57 for the idea Mar 19 14:19:15 what I meant Mar 19 14:19:36 ah Mar 19 14:19:38 okay that Mar 19 14:19:41 doesn't really Mar 19 14:19:43 help at all then Mar 19 14:19:50 ? Mar 19 14:20:17 you seem to confuse Mar 19 14:20:20 your return key Mar 19 14:20:24 and your spacebar Mar 19 14:20:26 meh, /me done Mar 19 14:21:11 didn't really get you.. I just wanted an windows app port to android Mar 19 14:21:19 if that helps Mar 19 14:24:34 * superlinux-hp Updates his tools + Eclipse ADT plugin. it's brand new Mar 19 14:24:58 superlinux-hp: now you can play the "and what did it break now' game Mar 19 14:25:52 dragorn, what do you mean? sorry i did not get the point. Mar 19 14:26:18 superlinux-hp: i haven't always had things go smoothly after a tools update. Mar 19 14:26:32 superlinux-hp: 9 times out of 10 it's fine tho Mar 19 14:26:50 dragorn, the tools have already a problem in Linux. Mar 19 14:27:13 Leeds: will this help? http://i.imgur.com/K5zxYyl.png?1 Mar 19 14:27:37 Dragging the widget from the list to the layout always crashes my Xwindow Mar 19 14:28:33 if it crashes all of X you've got something more profoundly wrong, like a driver problem, which is being exacerbated by eclipse Mar 19 14:29:16 DestinyAwaits: there is no simple answer. Start learning android lifecycle, then probably start learning how to make custom views and handle clicks in them, then figure out all the game logic Mar 19 14:29:18 hi, any can help me with achartengine? Mar 19 14:29:20 DestinyAwaits: it's a long process Mar 19 14:30:27 dragorn: can you pls. point me the reference where I can start with it. Mar 19 14:30:40 DestinyAwaits: developer.android.com Mar 19 14:30:47 all the docs and tutorials are there. also google. Mar 19 14:30:51 thx Mar 19 14:35:21 is there channel for android studio? Mar 19 14:35:55 or intelliJidea? Mar 19 14:41:08 I want to have a background queue that processes file system tasks for a certain part of my app. I am considering using a LinkedBlockingQueue and a Thread that loops forever processing this queue. Is this a sound approach? Is there a better way? Mar 19 14:46:16 hi, any can help me with achartengine ? Mar 19 14:48:29 how i can set initual zoom in achartengine? Mar 19 14:52:29 how do i enable interpolation when scaling down a bitmap? i'm passing filter=true to createScaledBitmap but result is the same as filter=false Mar 19 14:55:03 scelis: if you expect it to take any amount of time you probably need to put it in a service; otherwise the user leaving your app or rotating the device will disrupt it Mar 19 14:55:25 dragorn: This code was going to live in a static singleton-ish object. not an activity Mar 19 14:55:38 scelis: if it's instantiated in an activity Mar 19 14:55:42 scelis: it's going to be affected Mar 19 14:55:52 it's instantiated in the application class on launch Mar 19 14:56:40 hi anyone use android studio? Mar 19 14:59:47 scelis: in theory that'll work. Don't see it done very often Mar 19 15:11:36 goodwin, yes. it's good, if you're starting a new project. For us here, we couldn't se its auto-format so it doesn't mess our existing code on save (we use auto-format on save) Mar 19 15:12:13 s/couldn't se/couldn't set Mar 19 15:14:29 bitkiller: ? Mar 19 15:14:40 don't get you Mar 19 15:15:03 bitkiller: you use or not use auto-format on save? Mar 19 15:15:52 we use it in eclipse, and intended to use in studio, but we couldn't set studio to format the same way we have in eclipse Mar 19 15:16:51 bitkiller: oh you use auto format on save in eclipse! you are advanced users Mar 19 15:17:47 bitkiller: but i find powerful android studio double editing on xml resource file and screens Mar 19 15:19:31 bitkiller: how do i check android studio version bundled? Mar 19 15:20:04 help->about? Mar 19 15:20:18 i'm not currently using studio Mar 19 15:22:13 bitkiller: that's about IntellJIDEA not android studio version Mar 19 15:22:37 bitkiller: in eclipse i can find version for any features installed. Mar 19 15:23:49 Does anyone have any experience with rotating a view 90 degrees, and then redimensioning the view to fit the new screen size? Mar 19 15:24:33 bitkiller: i also find the terminal bundled is very good. i am on windows. so it is enhanced terminal. Mar 19 15:27:27 I'm facing a weird issue with the camera app: I just want to open an intent to pick a photo from camera, make it save somewhere and then elaborate it onActivityResult(). The fact is that the camera app opens, I pick a photo, then when I hit the check to accept the photo nothing happen: like if I didn't clicked it... what's wrong? my code is pretty simple and I think its not different from the official doc: http://past Mar 19 15:27:27 ebin.com/L1WQBfSN Mar 19 15:27:30 http://pastebin.com/L1WQBfSN Mar 19 15:27:52 (tried on a real device Nexus 5 and on Emulator) Mar 19 15:27:56 (same result) Mar 19 15:31:47 removing the EXTRA_OUTPUT the accept button works Mar 19 15:41:09 Oh I see.. the file must exist (I should create a temporary file before opening the intent...) Mar 19 15:57:03 hey, when i do the registerButton = (Button)findViewById(R.id.registerButtonRegister); commands, the auto-generated results for R.id shows every single widget, not just those for the class I'm in. is there a way to fix this? Mar 19 15:58:34 I wonder if it's time to have a #android- channel Mar 19 15:59:46 heh, I figure 50%+ use eclipse Mar 19 15:59:53 I'm starting to think there are more questions about using the ides than about android Mar 19 16:00:14 <7JTAABRMY> klaw: there isn't anything to fix Mar 19 16:02:41 kbs: shouldn't… we expect people to just move to studio soon Mar 19 16:03:45 xjunior: oh, I don't really have an opinion on which ide to use (and I use emacs) -- just wondering whether a channel specifically for ide related issues might be handy Mar 19 16:04:53 mabye it's just me - I live on the command line for pretty much everything and most of the IDE discussions kinda go over my head Mar 19 16:05:04 problem is the segregation Mar 19 16:05:19 you really do java on emacs? Mar 19 16:05:23 :P Mar 19 16:05:35 ITYM vim Mar 19 16:05:55 oh yea. I sometims find myself finishing up coding by the time some of my peers finish setting up eclipse Mar 19 16:09:53 They spend an 8 hour workday setting up eclipse? Mar 19 16:10:16 i use emacs to edit and then f5 in eclipse and run/debug Mar 19 16:10:19 works well Mar 19 16:10:54 don't know how anyone gets any coding done with those infernal popsups and bs Mar 19 16:11:18 amortized across a work week of 40 hours, I'd guess they spend about 4-5 hours in the care and maintenance of eclipse - whether it's restarting it/rebooting the machine/tweakin settings, etc. Mar 19 16:11:55 so - depending on the coding that needs to happen [say, switching to a branch that needs a little fix] it does happen sometimes that emacs is much quicker Mar 19 16:12:45 then again - everyone is different I guess - some people are pretty productive in eclipse and would find emacs/command line impossible to deal with Mar 19 16:13:01 * kbs is generally agnostic about ides - whatever works Mar 19 16:17:30 Can I have multiple devices in /etc/udev/rules.d/51-android.rules Mar 19 16:18:34 kbs, I've had eclipse open on my home computer for ~5 months without closing it Mar 19 16:19:09 jonc-1: great :) sounds like it's a good choice for you Mar 19 16:19:26 hi guys, I'm building my first app and I have exactly this http://stackoverflow.com/questions/20863924/android-error-device-driver-api-match when trying to use zxing to scan a code. Not clear to me how to fix this . Do I need to install a new custom ROM? ... Mar 19 16:19:29 I prefer Visual Studio, but it is rather heavy and doesn't really do java Mar 19 16:19:51 The benefit's mostly come from a debugging perspective Mar 19 16:20:38 there are stand alone debuggers like GDB, but I didn't find that overly good Mar 19 16:21:10 I personally believe benefits come from familiarity with the tools you use :) but hey - the proof is in the pudding and all that... Mar 19 16:21:31 well yeah, if you don't know the ide or tool it will never be any use Mar 19 16:21:35 jonc-1, kbs one day I will learn to stop hitting run build when I meant to continue in Android Studio (green triangle is at top like Eclipse was) Mar 19 16:21:53 jonc-1: amen to that Mar 19 16:22:12 but the reasons to use one over the other would be it's ease of use with the set of features it can provide Mar 19 16:22:21 ant clean debug install Mar 19 16:22:55 I have a feeling Leeds and me will just have to continue feeling smugly superior ;-) Mar 19 16:23:02 haha Mar 19 16:23:16 I've used command line editors, I hate vim with a passion Mar 19 16:23:29 jonc-1: then - nothing personal - I hate you Mar 19 16:23:37 haha Mar 19 16:23:56 try emacs instead Mar 19 16:24:08 I use nano anytime I have to edit something in commandline Mar 19 16:24:14 simple, to the point Mar 19 16:24:18 Never tried vim, I just assume I'll hate it Mar 19 16:24:47 SimonVT, it's like notepad++ but everything you do has to be keyboard shortcuts Mar 19 16:26:13 That sounds horrible Mar 19 16:26:36 where "horrible" is "productive" Mar 19 16:27:01 http://www.viemu.com/a-why-vi-vim.html relevant Mar 19 16:27:04 * kbs now regrets starting yet another ide holy war :) Mar 19 16:27:19 also, raises money for African kids... beat that :P Mar 19 16:27:43 most of that money and supplies gets taken by the corrupt governments anyways :P Mar 19 16:28:02 are we talking about how much good our apps do for humanity? Mar 19 16:29:31 Can I safely have multiple devices in /etc/udev/rules.d/51-android.rules? Mar 19 16:29:40 What happens when you try? Mar 19 16:29:56 shur, not sure, may want to check #android-root Mar 19 16:30:07 seems like something you'd only have access to with root permissions Mar 19 16:30:11 It is not working now, but I don't know if that is the reason Mar 19 16:30:15 (I assume he means on his pc) Mar 19 16:30:49 Yes afkaurs is the /etc/udev/rules.d/51-android.rules of the development laptop. Mar 19 16:30:54 how i can change the font face of actionbar title? Mar 19 16:31:01 So no need #android-root rite? Mar 19 16:31:19 But maybe they know Mar 19 16:31:59 I can't imagine it would be limited to one device at a time.. That'd be pretty stupid Mar 19 16:32:27 "Let me just run this on my tablet.. oh wait" Mar 19 16:51:00 have anybody successfully used ffmpeg in an android app? Mar 19 16:55:10 xjunior: me. Mar 19 16:55:23 shur: hey man! thanks for answering :) Mar 19 16:55:26 how did you do it? Mar 19 16:55:34 static build. Mar 19 16:55:40 did you follow any tutorial? Mar 19 16:56:20 I followed tutorials on libffmpeg.so and failed. So did a static build. Mar 19 16:57:54 Try building static on non cross compile, and then try the same cross compiling. Get yourself a rooted device to try it with `adb push ... ...`. Or maybe do the try with an AVD. Or get yourself a workflow using a qemu virtual machine. Mar 19 16:58:17 nano, heh Mar 19 16:58:20 yuck :p Mar 19 16:58:33 hello , does single ALU have SIMD operation ? or 4 ALU can make SIMD ? Mar 19 16:58:44 Depending on your use case going static ELF could make it or not. You'll know. Mar 19 16:59:29 hmmm Mar 19 17:00:07 I'm trying to connect an Asus nexus 7 to adb, but apperently I'm doing something wrong, I downloaded the drivers from their site and installed them ... did i forget anything significant? Mar 19 17:00:09 I'll research that… but basically, you got the source from ffmpeg and done? Mar 19 17:00:27 device doesn't show up as a target for compiling Mar 19 17:01:55 hey guys - any idea if i can disable the chromecast forced auto update "feature"? Mar 19 17:07:12 Hello. I'm beginning development on Android and am wondering if I should use QT or Android's Java-based interface. I have experience in both C++ and Java. Mar 19 17:07:50 java, almost certainly Mar 19 17:08:13 Unless you have some very specific needs Java is recommended Mar 19 17:08:37 I'm porting a script engine that I've written for desktop, so C++ will be involved, but also a lot of heavy UI work as well. Mar 19 17:10:39 curious - are UI elements creatable from the scripting language, or is it primarily for non-ui things Mar 19 17:10:57 Yes, the UI elements will be creatable from the scripting language. Mar 19 17:11:45 I am fairly familiar with both JNI and Qt. Mar 19 17:12:58 My personal opinion is that the more you can create your UI elements through the android/java frameworks, the less trouble you'll have - but that probably depends quite a bit also on how the language is implemented (or its ffi interfaces, so to speak...) Mar 19 17:13:29 I imagine one of the the tricky bits will probably be how to integrate properly with the event frameworks, so hm. Mar 19 17:14:39 I imagine you're already using QT for the desktop product? Mar 19 17:15:56 I'm using several different platforms for the desktop product, QT included -- it's designed to be cross-platform but also take advantage of platform-specific capabilities including UI. QT is currently only used on the Gentoo version of our product. Mar 19 17:16:30 On Ubuntu we're using GTK, and for Windows legacy, WPF is used. Mar 19 17:17:06 So it's really a question of which UI tool fits best with each platform. Mar 19 17:18:24 there's only one option for android then Mar 19 17:18:32 Gotcha. Well -- on android the least surprising UI from a user's perspective will likely be something that originates from the java framework. Maybe best to take a look at that first, to see if it fits into your current abstractions Mar 19 17:18:48 OK. Thanks! Mar 19 17:19:54 I have a feeling that the Activity lifecycles might cause the most trouble; that's probably the most unique thing about android's ui frameworks. Mar 19 17:22:12 hey is there an opensource code for google keep Mar 19 17:22:24 has anybody tried to replicate it and open source it? Mar 19 17:26:36 Does anyone know how to access the internal apis from eclipse.Its to change the network type of the phone. Mar 19 17:41:10 Do you know those blueish "tutorials" that are shown on some apps? If my theming is green, should I use green? Mar 19 17:43:40 can someone suggest if androidannotations should work (I cant get it to) with innerclasses of a parent class EActivity? Sure I can break the inner class out but would prefer not to. Mar 19 17:43:55 If my app crashed, is google play send the report automatically? Mar 19 17:46:19 Can anyone tell mme of a functioning logcat app for onboard debugging in Android 4.2+ with root? I cant find one that will show my debug logs. Mar 19 17:47:35 Can anyone help with this when compiling? http://pastebin.com/3ML644M6 Mar 19 17:48:57 what onboard debugging? Mar 19 17:49:35 something like catlog or alogcat that works Mar 19 17:49:48 why as root? Mar 19 17:50:06 (as opposed to default app user or however it works)? I have a working log set up btw. Mar 19 17:50:31 Because Android 4.2+ changed security policy of apps reading logs Mar 19 17:52:18 Oh I see. YOu need your app to read the logs? I use ch.qos.logback.classic.android and slf4j set up but thats just for log.info type stuff. Im not sure I understand your needs (being a noob that I am) Mar 19 17:54:49 I need a app to read them and display them for me, like https://play.google.com/store/apps/details?id=com.nolanlawson.logcat&referrer=utm_source%3Dgoogle%26utm_medium%3Dorganic%26utm_term%3Dcatlog+android&pcampaignid=APPU_0dkpU8fBCfKgyAG_0YDIBQ Mar 19 17:55:04 wow, not a real pretty link Mar 19 17:59:56 read your logs or the logcat? Maybe just explain the use case and someone else can pick up. Mar 19 18:06:10 if I have a scrollview implemented, should I be able to see everything in the graphical layout by scrolling down? Ie, if some text is cut off, does that mean the scrollview was implemented incorrectly in the xml? Mar 19 18:06:31 hi, how i can solve this in my eclipse http://cl.ly/image/452b220m1j3F ? Mar 19 18:12:55 qkzoo1978: i've been working on a logcat viewer for devices. even a widget :) gonna release it soon, once i get back to it from other stuff :) http://s30.postimg.org/fn3uondyp/logcat.png Mar 19 18:25:53 Hi there. Mar 19 18:26:51 So I have a dynamic site that is doing this and then. And I need android app that will get data from this site and will also send data back to this site. What would be the best approach to solve this problem? Mar 19 18:27:13 On dynamic site also RESFUL service because android handels REST good with json, so this has yet to be done Mar 19 18:27:38 is there a way to dynamically know how many words can fit in a notification and change lets say x, y and z to x+2? Mar 19 18:27:39 But what about android part? How should I communicate with web service? Mar 19 18:27:49 it seems un-duable to me Mar 19 18:28:27 frojnd: volley Mar 19 18:29:46 thepoosh: let me check what's this all about. Also I need great docs on this because I've never ever developed any app that communicates with web service. Mar 19 18:29:58 :S Mar 19 18:31:47 FILTER_BITMAP_FLAG has not effect on scaling a bitmap down Mar 19 18:32:41 hey guys. so, yesterday I tried to set up eclipse on a new laptop running ubuntu. I came to the "R cannot be resolved to a variable" issue. I tried every single solution and nothing worked. The only way the app ran was importing com.example.mypackage.R Mar 19 18:33:07 It is a little frustrating, so I decided to just keep that import. Is there any disadvantage of doing so? Mar 19 18:49:37 fmontano: try using the ADT instead of rolling your own eclipse+sdk Mar 19 18:50:32 I am actually using ADT Mar 19 18:50:35 thepoosh: I think volley is overkill because I don't have any images on the site. Just some data about work schedules that needs to be approved, sent back or deleted. Can you suggest me something that is older tech but good docs? Mar 19 18:51:09 I tried for like 2 hours straight.. it was one of those issues with no explanation whatsoever Mar 19 18:51:09 I installed Android Studio and everything works fine.. Buy I really want to understand why ADT doesn't work Mar 19 18:51:12 no, it's a very good library for managing requests that don't hold too much data in them (no streaming) Mar 19 18:51:25 frojnd: just don't use all the toolbox Mar 19 18:51:41 I mean, "doesn't work" Mar 19 18:51:46 thepoosh: one disadvantage is on screen roation... Mar 19 18:52:46 also, now that you guys are here.. quick question about app design with nag drawer. 1 activity many fragments? or 1 activity per nav drawer (top level item in drawer), many fragment (sub levels) Mar 19 18:52:53 nav* drawer Mar 19 19:04:40 hello everyone Mar 19 19:05:00 I am having trouble configuring adb under linux can anybody give a hand? Mar 19 19:05:27 I get nothing when I run ./adb devices Mar 19 19:05:47 I have checked config in rules.d and in adb_usb.inf Mar 19 19:06:35 when I run :sudo usb_modeswitch -v 0x22b8 -p 0x2e62 -S -R -W it identifies the phone and at the end it says communicaction with device stopped Mar 19 19:07:36 musashi: http://developer.android.com/tools/extras/oem-usb.html#Drivers Mar 19 19:08:39 thanks thepoosh Mar 19 19:08:44 pleasure Mar 19 19:09:15 Except you don't need drivers for linux Mar 19 19:09:23 sure? Mar 19 19:09:30 I remember there was an issue there Mar 19 19:09:33 I use mac Mar 19 19:10:05 It says right at the top of that page Mar 19 19:10:55 no? Mar 19 19:11:23 it says probably Mar 19 19:12:54 hmm, is anyone familiar with developing for chromecast? Mar 19 19:13:20 do you know if after changing udev/rules is mandatory to reboot or it is enough with restarting udev? Mar 19 19:20:11 in gneral,.. how does this works communicating with web service? Does android app needs to have somesort of database stored in android or not neccesserally? Mar 19 19:24:08 "Note that the Android testing API supports JUnit 3 code style, but not JUnit 4. " -- this is annoying. I wonder when they are going to upgrade this. Mar 19 19:25:19 Hello, I noticed that when I send the N with the tilda on it through google web suggestions, the encoding fails. Anyone know how to fix this? Mar 19 19:26:26 Hey, I'm drawing an object on the canvas, at some cases I want to duplicated it with out redraw all the geometry, is it possible to copy a section to memory and then redraw it at another position?\ Mar 19 19:27:28 viran you can capture the rect Mar 19 19:27:44 dump into a bitmap/canvas then dump back onto canvas, or probably there is some translate rect function Mar 19 19:28:07 or just draw it into a empty canvas, then to bitmap then draw it as many times as you need? Mar 19 19:28:35 Can anyone help with this when compiling? http://pastebin.com/3ML644M6 Mar 19 19:29:18 lasserix: how do i capture the rect? also, it's a canvas i created, so I have the underlying bitmap... Mar 19 19:31:13 What is redraw the geometry mean? Mar 19 19:31:28 I mean you can draw to an empty canvas instance, not visible to the user, then copy that to a bitmap, and reuse it. Mar 19 19:31:38 *reuse it on your visible canvas Mar 19 19:32:05 I'm assuming here by "draw geometry" you are doing more than just drawing a static/pre-defined bitmap Mar 19 19:33:23 yes, drawying the geometry means alot of canvas.drawSomething() that i'd like to avoid doing twice Mar 19 19:39:12 yeah Mar 19 19:39:17 so draw into a blank canvas instance Mar 19 19:39:23 copy that canvas into a bitmap Mar 19 19:39:40 then draw that bitmap as many times as you like to the canvas instance which you invalidate Mar 19 19:40:49 thanks lasserix Mar 19 19:42:17 hey guys, I have a Listview and a custom Adapter implementation for it. I want the listview rows to have buttons in them that do different things (fire an intent with different extras, for example). Should I set the onClickListener for those buttons in the if = null part of getView(), or outside it? Mar 19 19:42:33 in other words, should the listener be reset every time the view is recycled, or just when they're inflated the first time? Mar 19 19:43:11 if i just set the listener when they're inflated the first time, i am concerned that when the view is recycled, it will call the listener for the view it was recycled from. Mar 19 19:44:39 viran: np :) Mar 19 19:44:58 sigma are you using convertview to cache? Mar 19 19:45:05 sigma your fear is true Mar 19 19:45:20 so easiest way is to always set listener to null first Mar 19 19:45:52 :/ Mar 19 19:45:57 Either set the listener every time, or save the information you need in the views tag Mar 19 19:47:47 SimonVT, that's an interesting idea, saving in the tag. i will investigate that Mar 19 19:48:20 And remember to set the info every time Mar 19 19:48:28 And to get the tag from the view passed in the click listener Mar 19 19:48:47 (╯°□°)╯︵ ┻━┻ Mar 19 19:48:49 I usually just set listeners, much easier Mar 19 19:49:03 hey so google voice is shutting down eh Mar 19 19:49:08 what Mar 19 19:49:19 SimonVT, aren't there performance ramifications? Mar 19 19:49:47 no Mar 19 19:49:55 Not really Mar 19 19:50:03 It's just creating a single object Mar 19 19:50:04 Is anyone using Android Studio 0.5.1 on OS X? When creating a new project, it seems to get stuck and wait forever on the "Building 'MyApp' Gradle project info" step. Mar 19 19:50:04 if you are using viewholder and convert view tag, you've already optimized for performance Mar 19 19:50:16 that's really what i'm concerned about, i don't want it to allocate a new Listener every time a view comes on screen Mar 19 19:50:31 wanted to get an android dev system up and running in my windows 7 vbox vm. downloaded jdk 6 and 7 and installed. downloaded intellij idea. downloaded the bullshit "bundle" from android and promptly DELETED the eclipse directory from the bundle Mar 19 19:50:47 sigma: its going to have too unless you use a viewholder tag to cache the listener Mar 19 19:50:56 configured intellij idea for JDK and the android sdk, and Mar 19 19:51:14 I440r, if you want to use IntelliJ idea why didn't you just get Android Studio? Mar 19 19:51:37 when click tools->android->sdk manager and IJ says its launching it but the manager NEVER launches Mar 19 19:51:57 s1gmab3ta, because thats not a finalized product yet. Mar 19 19:52:14 Getting a string from resources is likely slower than instantiating a click listeners Mar 19 19:52:21 I440r, maybe not, but the SDK manager launches from it :) Mar 19 19:52:50 s1gmab3ta, not here it wont. thers something going wrong here. i cant even CD into the tools directory and launch it from there Mar 19 19:53:03 execyte the android.bat or what ever it is and i get NOTHING Mar 19 19:53:43 there was no "install" for this "bundle" just a zipped up directory you plonk anywhere you like Mar 19 19:53:53 Joining two strings? Probably also slower than creating a click listeners Mar 19 19:53:57 But still insignificant Mar 19 19:54:27 SimonVT, good to know. i'm just going to do the listener thing then. Mar 19 19:54:39 why does my android sdk manager not launch? Mar 19 19:55:33 "SDK Manager.exe" also does not launch the sdk manager Mar 19 19:55:41 and no error messages Mar 19 19:56:06 where do i get an INSTALL exe for the android sdk Mar 19 19:56:19 not a "extract this bullshit and put it whereever" pile of crap Mar 19 19:56:53 would prefer something that did NOT come bundled with eclipse which ill never use anyway Mar 19 19:57:31 I440r, you'll get more flies with honey than vinegar Mar 19 19:57:47 I440r, but, I would say the most likely culprit is some sort of JDK issue? maybe get rid of JDK6? Mar 19 19:57:51 ya kinda frustrated, Mar 19 19:58:01 I440r, where you put it on storage hasn't mattered in my experience on multiple platforms Mar 19 19:58:02 Is there a list of specific identifiers for installing the sdk headlessly (i.e. android update sdk -u --filter )? This answer mentions identifiers like "extra-android-support", but how do I install, for example, Google Play services? http://stackoverflow.com/a/4682241/1282635 Mar 19 19:58:03 no. android does not support jdk7 Mar 19 19:58:09 trying to figure out what to search... I am trying to use a onClick of a view to query the db... I know how I can do it with tags... but is there a way to connect it to sqlite directly? Mar 19 19:58:14 and im not going to mash a square peg into a round hole just to make it fit Mar 19 19:58:17 I440r, and you won't find an installer Mar 19 19:58:45 https://developer.android.com/sdk/installing/index.html Mar 19 19:58:45 linguinee: open the repository xmls Mar 19 19:58:58 1. Double-click the executable (.exe file) to start the install. Mar 19 19:59:01 I440r: android supports JDK7 and 8 just fine Mar 19 19:59:03 I440r, on my linux machine android studio will not launch without JDK 7. you don't have to compile as Java 7 Mar 19 19:59:21 JakeWharton: Ahhhh...where are those located? ^^;; Mar 19 19:59:28 since when does android support java 7? Mar 19 19:59:32 kit kat Mar 19 19:59:43 that's a different thing though Mar 19 20:00:07 your jdk doesn't matter since they all cross-compile to each other Mar 19 20:00:11 hey does anyone have any advice for setting button width, im using a relative layout and would like to make the button take up about 80% of the screen width if possible? Any ideas Mar 19 20:00:30 linguinee: when you run 'list' you can see a list of them being downloaded in the console Mar 19 20:00:35 I440r : see this http://tools.android.com/tech-docs/new-build-system/user-guide Mar 19 20:02:01 matt1982_, with a relativelayout, maybe have it match_parent width and use margins to get it down to 80% ish? Mar 19 20:02:04 was honestly trying to avoid having to learn bash, java script, visual basic, gradle, groovy, xxx, yyy, zzz all jsut to build a hello world application for android. Mar 19 20:02:17 lol Mar 19 20:02:33 s1gmab3ta, ahh cool thanks for the tip. I think i just found something. writing it in here for you guys made me think more logically about it hah Mar 19 20:02:41 I440r: so don't Mar 19 20:02:48 matt1982_, that's how it always works. Mar 19 20:02:54 heh yeah Mar 19 20:02:58 linguinee: i might have lied. they don't appear in the xml Mar 19 20:03:02 i should just not press enter :D Mar 19 20:03:06 matt1982_, i'll be like 90% of the way thorugh a 20 page Stack Overflow masterpiece Mar 19 20:03:10 then BOOM what is wrong with me Mar 19 20:03:13 matt1982_: probably also consider embedding a linearlayout - don't belive relativelayouts examine layout_weights Mar 19 20:03:48 i already have my linux android dev set up just fine, just wanted to get it set up in this windows vm too Mar 19 20:03:53 kbs no they dont. I saw a one example doing that Mar 19 20:04:40 JakeWharton : Quick question : I tried few days back Robolectric and extend the my class with ActionBarActivity and I was getting exception in test case, when I replaced with ActionBarActivity to Activity then it started to work perfectly. Mar 19 20:04:58 404 Question Not Found Mar 19 20:04:59 JakeWharton: Yeah, I don't see them :( Seems like it would be a valid place, though. Mar 19 20:05:29 linguinee: you can usually guess them. what are you looking for again? Mar 19 20:06:02 uninstalling java 6 and 7 and reinstalling only 7 Mar 19 20:06:18 JakeWharton : see this I was having same issue http://stackoverflow.com/questions/18790958/cannot-create-actionbaractivity-from-robolectric-2-unit-test Mar 19 20:06:46 I tried the solution which this thread says but did not work, is this not supported yet in Robolectric Mar 19 20:07:24 JakeWharton: Android SDK Tools, Platform-tools, Build-tools, API 19 (SDK platform and Google APIs), Android Support Repository, Android Support Library, Google Analytics App Tracking SDK, Google Play Services, and Google Repository. I've gotten as far as "platform-tools,android-19,build-tools-19.0.1,extra-android-support", but unsure about the Google stuff Mar 19 20:07:34 TGMCians: yeah i think it's supported on master for the next release Mar 19 20:07:36 not really user Mar 19 20:07:38 sure Mar 19 20:07:47 you shouldn't be supporting pre-ICS anyway! :) Mar 19 20:08:00 hmm oh okay fine Mar 19 20:08:06 thnx JakeWharton Mar 19 20:09:03 JakeWharton, what about the people running pre ics phones who cant afford to upgrade them to newer? Mar 19 20:09:03 linguinee: extra-android-m2repository is the Android Support Repository Mar 19 20:09:11 I440r: leave them on old versions of your app Mar 19 20:09:14 anyone use sqlite in conjunction with listviews, trying to understand how to get the sqlite rowid connected... heard something about getItemId? Mar 19 20:09:27 aha ok Mar 19 20:09:35 if they can't afford to upgrade, they're not monetizing users worth supporting Mar 19 20:09:48 JakeWharton: Awesome, thanks :D Do you know what the analytics one is? And where did you find the support repository identifier? Mar 19 20:10:09 i don't remember where I found that, but i use it on my projects which is how i know it Mar 19 20:10:44 I see, thanks. Weird how there isn't a list somewhere Mar 19 20:11:06 it has to be somewhere. you could dig into the SDK manager code to see where it matches the --filter command contents Mar 19 20:11:54 True. Into the source code I go u____u haha Mar 19 20:12:03 so if i want to build my android apps against java 7+ i have to use gradle? Mar 19 20:12:13 yes Mar 19 20:12:18 linguinee: could also email adt-dev@ Mar 19 20:12:31 if I pull items from my sqlite db and I call getItemId to query the db would that be an issue with coinciding with the correct id... as I am reading that it starts from 0? (1 behind what the id is of the actual row)? Mar 19 20:12:45 i find emailing google mostly gets ignored. Mar 19 20:12:59 yes emailing google@google.com will be ignored Mar 19 20:13:05 their idea of community support is to let the community support itself Mar 19 20:13:14 yep Mar 19 20:13:40 your single experience on a tiny subset of interaction with google holds true for everyone and everything they do Mar 19 20:15:12 try getting any kind of support for gmail.com <--- Mar 19 20:16:01 I've come to realize the main point of g+ is to have a place to chat with the google devs :-) Mar 19 20:16:02 i don't need any Mar 19 20:16:09 linguinee: i emailed Mar 19 20:17:29 Awesome, I see it. Thanks! I'm still trying to find the manager source code, lol. Mar 19 20:18:38 Quick Question : Why NFC intent works in different as others, I was working on NFC app to scan the tags, when there is multiple apps to handle that action then why that system pop up does not show Always button in case of NFC only Mar 19 20:18:46 oh well i guess if you never need any support from google regarding gmail.com why would google bother having any Mar 19 20:18:51 JakeWharton: they pushed back RSVPs for your Dagger talk D: Mar 19 20:19:01 oh wait. for all intents and purposes they DONT Mar 19 20:19:06 guess its your fault :) Mar 19 20:19:52 jjnye: indeed they did. don't know why. Mar 19 20:20:07 JakeWharton: i set a reminder hahaha Mar 19 20:20:18 System does not show Always option when there is multiple app to scan the NFC tags, it only show show Open Mar 19 20:20:26 I failed to find the reason for this Mar 19 20:23:38 Any here who know about this ? Mar 19 20:26:52 downloaded the sdk only not the bundle. unintalled java 6 and 7 and reinstalled 7. opened intellij idea and reconfigured my project to use jdk 1.7 Mar 19 20:27:47 trying to run the sdk manager and it wans me to specify my android sdk version. seems i have no actual android sdk installed so need to run the sdk manager to install one and it wont run because it needs an android sdk Mar 19 20:27:53 or some circular bs like that Mar 19 20:28:04 all i know is i cant get this working Mar 19 20:28:47 no build targers installed Mar 19 20:29:01 android sdk manager wont run to install one Mar 19 20:29:54 JakeWharton: Someone replied - "android list sdk --no-ui --all --extended" lists out the identifiers. :D Thanks for the help! Mar 19 20:30:28 cool. i like that he asked a question to which the answer is obvious Mar 19 20:30:40 no, obviously i haven't tried that or i wouldn't have sent an email Mar 19 20:31:38 adding the android sdk to intellij idea project settings. select the location i extracted the android sdk and it tells me it cant find any platforms in there so it wants me to run the sdk manager. the sdk manager wont run because i dont have an sdk selected which i cant select because the selector wants a platform to be installed Mar 19 20:31:41 seriously wtf over? Mar 19 20:32:31 run it outside of intellij then Mar 19 20:32:35 I440r: just run it manually.. yeah Mar 19 20:32:51 run it manually and it launches nothing at all Mar 19 20:33:02 the manager WONT LAUNCH Mar 19 20:33:27 Anyone used Java 8 with/for Android yet? Mar 19 20:33:32 Anyone used Android Studio on Java 8 yet? Mar 19 20:34:00 double click on the sdk manager exe and a dos box opens up and instantly closes again Mar 19 20:34:22 smallfoot-: runtime doesn't support it, JDK works fine, haven't tried AS/IJ on it. Mar 19 20:34:32 :s Mar 19 20:34:36 you want to run the android.bat (I think) Mar 19 20:34:44 tried that Mar 19 20:34:48 also, run it from cmd, so you can actually see the outputh Mar 19 20:35:05 this causes the dos box to open and stay open and nothing gets launched Mar 19 20:35:45 I hate to suggest this, but have you tried rebooting? Mar 19 20:36:01 yes Mar 19 20:36:11 its a valid suggestion for a windows vm lol Mar 19 20:36:17 oh! Mar 19 20:36:37 erm. will try again, dont think i rebooted after unintalling java 6 and 7 and reinstalling only 7 Mar 19 20:36:56 Yeah, that's specifically what I was thinking wrt. rebooting Mar 19 20:37:33 for a windows install suggesting a reboot doesnt have the same "omgwtf are you suggesting" reaction as linux would have :) Mar 19 20:39:02 rebooting this windows vm takes forever. the shutdown can take 20 minutes sometimes Mar 19 20:39:19 no freeking idea why that happens, usually i just have vbox RESET Mar 19 20:40:02 could anyone advise what would be the best way to start building this kinda of layout up: http://postimg.org/image/lg23zygyz/ I want it to be anchored to the bottom of the layout. I was thinking 3 buttons in a horizontal linearlayout maybe? Mar 19 20:40:25 that looks kind of linear to me Mar 19 20:41:05 matt1982_, horizontal linearlayout with weight sum of 3, Mar 19 20:41:05 I440r, yeah I thought so just getting to grips with more complex layouts. Mar 19 20:41:33 99% of the time the only layouts i use are relative Mar 19 20:41:38 and I'd do 3 relative layouts inside that (for placement of the numbers) Mar 19 20:41:47 but some things just scream linear lol Mar 19 20:41:51 haha Mar 19 20:41:55 ahh cool Mar 19 20:42:33 so inside the linearlayout I then break it down into 3 relative layouts Mar 19 20:42:35 jonc-1, agrees no? Mar 19 20:42:44 with the numbers icon and the text? Mar 19 20:43:33 Does anyone have a library of of Android Virtual Devices they use for testing? I found this: https://github.com/mckold/AndroidAVDRepo-master/tree/master/AndroidAVDRepo-master but I need more devices. Mar 19 20:43:43 you should re-use the same layout for all three children Mar 19 20:43:48 don't repeat yourself Mar 19 20:43:49 or you could just have 3 separate png's Mar 19 20:44:35 JakeWharton, sorry i'm not sure I understand. Same layout as in how list adapters work? Mar 19 20:44:43 * kbs would first check how it's supposed to look if the screen is very wide Mar 19 20:44:59 kbs, oooh good question. Mar 19 20:45:44 my first thought we be "Very big buttons" hah. not sure that is correct though Mar 19 20:46:38 yea. I find it's best to think of android ui layouts as being more similar to web layouts [ie, figure out its "responsive"ness] before getting going too far down the implementation path... Mar 19 20:48:20 kbs, yeah my background is web. I was thinking it should just scale up if possible. Mar 19 20:48:31 Still learning so not so bothered if i mess up just yet Mar 19 20:48:41 matt1982_ meh, it would look bad if it scaled in landscape probably Mar 19 20:48:48 it's similar to web, but you do lose the niceness of having percentage based widths and heights Mar 19 20:48:55 matt1982_ currently we are forcing portrait until we do tablet / landscape optimization Mar 19 20:48:58 you can use weight, but you aren't supposed to have nested weights Mar 19 20:49:20 ahh right. well I will play around see what I can **try** and achieve hah Mar 19 20:52:24 I should be able to launch the usable website for my app / product I've been working on for about 8 months (on and off for awhile and then the last 3 months pretty heavily) Mar 19 20:53:19 the app should follow within a few weeks Mar 19 20:55:09 jonc-1 just curious, what'd you use to make the site Mar 19 20:56:10 php Mar 19 20:56:38 with an internal java rest service Mar 19 20:59:25 currently it takes 5 servers for the full system to run Mar 19 20:59:42 jonc-1, that's pretty heavy 5 servers! Mar 19 20:59:54 a few of them could be put together on 1 machine, but it's will be easier to scale Mar 19 21:00:03 but it will be* Mar 19 21:00:11 ahh cool Mar 19 21:00:30 1 load balancer, 1 front facing java server for app and php to hit, 1 web box, 2 database machines Mar 19 21:00:41 jonc-1 neat Mar 19 21:00:57 jonc-1 what db you using Mar 19 21:01:04 and each databse machine has a java server to handle data going into or out of each database Mar 19 21:01:06 mariadb Mar 19 21:01:21 1 table I have currently has 90 million rows Mar 19 21:01:40 and I expect that to grow to ~800-1 billion before it starts to level off Mar 19 21:02:02 jonc-1: what kind of data? Mar 19 21:02:06 jonc-1 wow, are you doing any lucene index or something similar? or just using native indexes? Mar 19 21:02:42 standard indices, jaynewstrom it's nothing spectacular it's all the numbers needed to calculate probabilities between pairs of items Mar 19 21:02:53 interesting Mar 19 21:03:31 It's to support a realtime learning algorithm to suggest interests based on a user's facebook interests so that I can then use that to suggest netflix videos Mar 19 21:04:11 sounds like it could work Mar 19 21:04:50 and then I cache the inferred interests along with the user's session so that my database will not get hammered anytime someone asks for matches Mar 19 21:05:19 if the session is still valid (it times out after X minutes of non-use) then just use the interests I've already calculated for matching netflix videos Mar 19 21:05:25 what does the app do? just show them to the user on mobile? Mar 19 21:05:59 it ranks netflix streaming videos based on how likely the system thinks you would like each video Mar 19 21:06:14 based on your fb page? Mar 19 21:06:17 based on what interests it thinks you would like which is determined by your facebook interests Mar 19 21:06:42 cool. well, let me know when it comes out and I'll give it a try Mar 19 21:07:11 and if you don't have a lot of facebook interests or have ones that don't align with what netflix offers, it then just takes the top 100 interests by times seen and then infers on that Mar 19 21:07:50 so it wont be recommending zatoichi very often :) Mar 19 21:08:11 http://test.myflixfinder.com should work on mobile also Mar 19 21:08:41 I've done everything on the project myself except some of the wording (girlfriend did that) Mar 19 21:09:17 are you planing on make money off the ads? Mar 19 21:09:18 login is top right, I need to add the "Ready to get your matches" and login button at the bottom before I update the web box Mar 19 21:09:29 if I get enough to pay for the servers I will be happy Mar 19 21:09:46 I like the logo Mar 19 21:09:53 Thank you Mar 19 21:09:57 be back in about 15 minutes Mar 19 21:10:00 looks like an interesting project! nice job and good lucj Mar 19 21:10:03 cool project jonc-1 -- good luck Mar 19 21:10:03 luck* Mar 19 21:10:07 jonc-1: does it look at your friends interests as well? Mar 19 21:10:21 jonc-1, so this is something you can add to your resume to look good and get a job or purely academic/fun ? Mar 19 21:11:57 does "need someone to come peel labels off smart phones and tablets" look like someone trying to prevent stolen property from being traced? Mar 19 21:13:45 yes/no? Mar 19 21:19:08 Why would progaurd fail to strip log messages? Mar 19 21:25:13 idk Mar 19 21:26:35 because you didn't tell it to properly Mar 19 21:28:50 back (left work) Mar 19 21:31:32 lasserix: https://gist.github.com/mariusk/9651822 Mar 19 21:31:36 JakeWharton: do you have a minimal optimization setting? Mar 19 21:32:03 kjeldahl, what do you use for your optimization? Mar 19 21:33:12 lasserix: The result of hours of trial and error; highly app specific. But basically the "standard" java settings with enough "keeps" to get my app running.. Mar 19 21:33:20 hehe Mar 19 21:33:21 yeah Mar 19 21:33:24 that is what i figured Mar 19 21:33:30 lasserix: I use neither proguard nor Log directly Mar 19 21:33:36 yeah Mar 19 21:33:37 ;p Mar 19 21:33:39 lasserix: Start with something that works and start cutting. Mar 19 21:33:49 ahh i ill will just use a static wrapper on logger Mar 19 21:34:29 JakeWharton: Dexguard? Mar 19 21:34:57 or "fat" binaries? ;-) Mar 19 21:35:39 normal binaries with judicious use of libraries Mar 19 21:35:55 vis-a-vis logging, I've found the iosched app to be a decent enough place to 'find' code. http://code.google.com/p/iosched/source/browse/android/src/main/java/com/google/android/apps/iosched/util/LogUtils.java Mar 19 21:35:56 they are by no means fat Mar 19 21:36:05 kbs: thanks! Mar 19 21:37:28 kjeldahl: that proguard config will strip calls to Log but won't strip the concatenation of strings that get passed to them Mar 19 21:39:18 JakeWharton: Rly? So assumenosideeffects doesn't quite mean what I thought it would then, and/or proguard isn't as smart as I hoped. Mar 19 21:40:49 given: Log.d("Foo", "Name" + name); you'll still get StringBuilder l0 = new StringBuilder().append("Name ").append(name).build(); happening Mar 19 21:42:02 calculating the arguments themselves could have side-effects in the general case, no? (If the goal is to prevent string objects being created, not much hope other than blocking them out within if statements I expect.) Mar 19 21:42:25 JakeWharton: Yes, thanks. Looking into it. http://stackoverflow.com/questions/6009078/removing-unused-strings-during-proguard-optimisation Mar 19 21:42:34 "SELECT * FROM " + TABLE_TAGS + " WHERE " + KEY_TAG_ID + "=" + id " AND " + KEY_DATE_RETRIEVED + ">=" + time +" ORDER BY " + KEY_ID + " DESC LIMIT 160 OFFSET " + count; is there something wrong with this statement android studio says not a statement but nothing else... Mar 19 21:42:50 nvm missing a plus Mar 19 21:42:52 so annoying Mar 19 21:42:54 LoneSoldier728: It's SQL-injection friendly Mar 19 21:43:40 yeah I know, how am I suppose to protect it btw... all the examples and tutorials I just see people explain it like that... not sure how to design a prepared statement for it Mar 19 21:44:17 use ? where values go and then PreparedStatement or whatever Mar 19 21:45:36 That's why SQLiteDatabase, etc, has a query method that have you pass values separately Mar 19 21:45:50 is there awell I think I am using that Mar 19 21:46:20 too lazy to delete the line you were already typing... Mar 19 21:46:33 didnt realize it was there aha Mar 19 21:47:02 http://pastebin.com/ptvFXUBQ Mar 19 21:47:13 For example that is one of my queries... is that "protected" Mar 19 21:47:34 Can an app root the phone ? Mar 19 21:47:45 well it shows no values but if there were values it would be passed through the arguments up top Mar 19 21:48:19 query, not rawQuery Mar 19 21:48:45 is there a difference? Mar 19 21:48:54 well I mean if I change it to query Mar 19 21:49:06 will it affect anything on my end, or bring back the same results Mar 19 21:49:46 Ok, solution seems to be to wrap Log calls in my own class and only pass basic strings and build concatenated strings when called. The proguard can get rid of calls to my own log class instead. Mar 19 21:49:59 oh is that the protection simonV Mar 19 21:50:01 Vt Mar 19 21:50:01 THEN proguard... Mar 19 21:50:04 adding query? Mar 19 21:50:32 kjeldahl: or you could just make the class no-op on production builds Mar 19 21:50:36 Yes, selection args are escaped for you Mar 19 21:50:39 and not have to mess with proguard nonsense Mar 19 21:51:31 so should I be changing every rawQuery to query... or can I leave the ones that do not take user input? Mar 19 21:52:12 JakeWharton: True. Any recommended tools for build-time source code mods or similar? I might have to read up on "flavours" or something... Mar 19 21:53:47 Is'nt just -- if (BuildConfig.DEBUG) { ... } sufficient? or you could do the iosched trick of if (BuildConfig.DEBUG || Log.isLoggable(..)) Mar 19 21:53:48 you don't even have to go all crazy like that. public static void logD(String name, String message, Object... args) { if (BuildConfig.DEBUG) { log } } Mar 19 21:54:07 ^^ Mar 19 21:55:42 JakeWharton: Yeah, KISS. Thanks for the lesson anyway. Mar 19 21:55:52 SimonVT this should do it right http://stackoverflow.com/questions/10600670/sqlitedatabase-query-method Mar 19 21:55:56 kjeldahl: i wrote a log wrapper if you're interested: https://github.com/JakeWharton/timber Mar 19 21:56:19 kjeldahl: i use it to pipe logs to Crashlytics, debug UI, real Log in various cases Mar 19 21:57:24 JakeWharton: Oooh, shiny! Thanks, will definitively look into that. Mar 19 21:57:48 it's full of numerous log-related puns Mar 19 21:58:28 LoneSoldier728: yep Mar 19 21:58:33 TREE_OF_SOULS ... Mar 19 21:58:43 kk thanks for the direction Mar 19 22:04:06 you guys ever run into 'gradle build daemon disappeared unexpectedly' errors when building with gradle Mar 19 22:04:26 seems to only happen when i try to increase my java heap size in gradle.properties Mar 19 22:14:52 JakeWharton: how much of your work week do you spend thinking of new library names? Mar 19 22:14:59 90% Mar 19 22:15:52 JakeWharton: square doesn't get mad at you? Mar 19 22:16:07 I'm CNO: Chief Naming Officer Mar 19 22:16:24 solving the most difficult problems in computer science Mar 19 22:16:55 haha. yep Mar 19 22:17:31 Like the double pun on that logger library :{ Mar 19 22:17:48 what is this "tabview" called where i can swype as well? Mar 19 22:17:51 JakeWharton: i looked over Timber and was surprised there isn't already something in Java called "Tree" Mar 19 22:18:32 smart_ptr: ViewPager Mar 19 22:19:09 jjnye: TreeMap and TreeSet are the only ones I can think of Mar 19 22:19:11 thank you :) Mar 19 22:20:45 JakeWharton: you're right, but i was still surprised Mar 19 22:43:07 Can you view logcat over adb somehow? Mar 19 22:43:21 wow I just realized from my login screen if a user hits back twice it takes them to the home page... I have finish() called... am I suppose to be doing something else? Mar 19 22:43:54 i have clear top etc... but I guess once the app loads they won't get called yet Mar 19 22:44:57 I dont have the issue if a person logs out Mar 19 22:45:11 or hits back the first time after logout Mar 19 22:45:19 but after that it does that... Mar 19 22:52:17 ls Mar 19 22:53:04 I've been building AOSP / CM for a while now. I'm curious about trying out various optimizations now, but I'm not sure where to set them. Which file holds flags for optimization? Mar 19 22:54:51 hey Mar 19 22:54:56 quick question Mar 19 22:55:19 i made a notification which launches an activity of my app as a dialog rather than an activity Mar 19 22:55:49 is there any reason why, before launching the activity, it goes to the home screen? Mar 19 23:23:20 ok List names = db.query.... Keep getting a null pointer exception... I tried to initialize it that does not see to be the issue... am I missing something Mar 19 23:25:29 damn didnt initialize db Mar 19 23:32:10 test Mar 19 23:32:40 1) I have internet on an airplane Mar 19 23:33:05 :) Mar 19 23:33:11 2) My gesture detector is not firing particular events to my SimpleGestureListener (full code here http://pastie.org/8952042) Mar 19 23:34:20 Its correctly getting long-press but I don't see anything logged from flings/taps/ or scrolls Mar 19 23:35:04 There shouldn't be anything necessarily enabled for this to work right? Given the API of the GestureRecognizer, and the docs, and the examples, I should be good2go Mar 19 23:36:40 maybe something else is grabbing those in another module Mar 19 23:38:34 mm Mar 19 23:38:54 the onTouchEvent gets called, the event is passed to the GestureDector... Mar 19 23:39:06 So it doesn't appear to be intercepted at that point Mar 19 23:41:12 Ok Mar 19 23:41:22 onDown in the recognizer needed to overwritten to return true .. Mar 19 23:43:33 so, your coding on a laptop on airplane? Mar 19 23:44:01 and you choose to use the nick, explodes? Mar 19 23:44:04 I admire that Mar 19 23:44:45 lol Mar 19 23:46:19 heh Mar 19 23:47:48 well i spent $3 for internet Mar 19 23:48:00 what can i do from an airplane that you cant do on land Mar 19 23:48:02 speedtest Mar 19 23:48:15 that gives you access for the whole flight or by the hour? Mar 19 23:48:20 $3? it's a 15 minute flight? Mar 19 23:48:32 heh, speedtest would be interesting Mar 19 23:48:46 I've never been on a flight with internet - I fly 5-6 round trips per year, but Asia/Europe Mar 19 23:49:11 http://www.speedtest.net/my-result/3382484271 Mar 19 23:49:20 $3 for 30 minutes Mar 19 23:49:24 I assume its going to become a lot more common, seems to be a growing market and the technology is there Mar 19 23:49:29 54 minute flight Mar 19 23:49:59 thats not bad I guess Mar 19 23:50:12 they don't want you watching movies of course ;) Mar 19 23:51:00 ping is too slow for gaming Mar 19 23:52:11 for comparison, my home connection - which is running slow this morning: http://www.speedtest.net/my-result/3382487778 :) Mar 19 23:53:16 l8r Mar 19 23:53:17 is that DSL or Cable? Mar 19 23:53:29 Carbonflux: fibre, all the way Mar 19 23:53:51 ah, thats why its more symmetrical than I am used to seeing. Mar 19 23:53:58 got to be honest, I'd like to have a connection on a flight, but mainly just because it would be easier to waste the time Mar 19 23:54:08 agreed :) Mar 19 23:54:35 http://www.speedtest.net/my-result/3374368364 is a more impressive speed :D Mar 19 23:55:47 do you know why there is so much variation in the speed? or is that just normal for your area? Mar 19 23:56:38 thats very fast, regardless. Mar 19 23:56:38 question about gradle-plugin 0.9 … the docs say "Variants of libraries can now be published, though by default only the default variant is published. This is a work in progress." Mar 19 23:56:50 is this the maven-publish stuff, or something else ? Mar 19 23:57:02 things are presumably shared at *some* point in the architecture, and even with that low ping it's going out from my ISP through the local exchange Mar 19 23:59:31 anyway, time to go back to bad Mar 19 23:59:35 er, bed :) Mar 19 23:59:43 cu Leeds :) Mar 20 00:00:44 has anyone ever had this appear in their logcat? F libc : Fatal signal 11 (SIGSEGV) at 0x00000001 (code=1) Mar 20 00:01:04 googled it, looks like it could be anything, but I have no idea how to start trying to find the problem... Mar 20 00:01:19 your native code (or some library) had a segfault Mar 20 00:01:21 no, but its in libc Mar 20 00:01:27 so its a null pointer Mar 20 00:01:32 sure Mar 20 00:01:38 pass a null to a libc function Mar 20 00:01:45 again, some native code or library had a segfault Mar 20 00:01:51 barbs are you using native code :P Mar 20 00:01:55 I have no custom native code Mar 20 00:01:59 well then ! Mar 20 00:02:35 I am using some libraries that may be using native code though, not sure... Mar 20 00:02:45 namely Picasso, Gson and GreenDAO Mar 20 00:02:48 thats no doubt it Mar 20 00:02:57 Picasso and Gson are pure Java Mar 20 00:03:35 it could still be some start "you" are putting things in at a higher level Mar 20 00:03:45 the screen it's failing on uses none of those libraries anyway Mar 20 00:03:52 but its clearly a bug in the 3d party api Mar 20 00:04:01 JakeWharton: thanks. I love Picasso btw. Mar 20 00:04:06 state* Mar 20 00:04:37 although I am having issues with it not transforming images in a listview all the time...but that's another issue Mar 20 00:04:37 just careful with okhttp Mar 20 00:04:39 it should be throwing an exception, not a segfaulting Mar 20 00:04:51 if you're using google analytics it will cause your stuff to blow up and crash Mar 20 00:05:00 funkbox: only old versions Mar 20 00:05:02 I'm not using Google Analytics Mar 20 00:05:13 and it has nothing to do with Google Analytics Mar 20 00:05:14 it does only happen on one device...might be an issue with its firmware Mar 20 00:05:20 JakeWharton: i still see it on latest picasso+okhttp+retrofit Mar 20 00:05:55 there was a bunch of workarounds but none of them solved it 100% Mar 20 00:07:15 JakeWharton: http://pastebin.com/sves9wXM << doesn't seems to get it on all devices Mar 20 00:23:03 g000s (^_^) Mar 20 00:28:30 funkbox, that disables TLS, does it not? or rather makes it ineffectual. are you sure you want to do that? Mar 20 00:57:51 funkbox, no my mistake seems that just uses the defaults, carry on Mar 20 01:01:39 Hi, Where can i see a list of (all or most common) GOOGLE ANDROID's own service list and their summary (or brief) function (or purpose) ? Mar 20 01:12:37 TErik: ? Mar 20 01:14:53 myke, rephrasing the question ... i want to know what services runs inside Google Android OS, so i can undestand better, what are not from Google-Android & what are from Google-Android, is there an document that shows each service brief/short info ? Mar 20 01:15:46 not that i know of but android services are generally easy to spot Mar 20 01:16:28 you could also start a new emulator and see what runs Mar 20 01:16:30 isn't it amazing, that there is no simple page, from google/android, thats showing/indicating what are their services ?! !!! Mar 20 01:16:53 there isn't one for windows, or linux, or any other OS i'm aware of Mar 20 01:17:32 so that gives excuse, to make no list for google-android ?! i see, thats why its not there ? Mar 20 01:17:58 ask CM or something, they do OS dev, they'll know more than most people in this channel Mar 20 01:20:57 TErik: sounds like a good project for you to do Mar 20 01:22:01 i am very new to these, Android internals. so i do not think i'm eligible for this job :( Mar 20 01:23:01 run an emu and list out those services Mar 20 01:36:01 how do I stringify an arraylist string (532a3f6954f48ac02bf0bc30) - i tried Arrays.toString and deepString neither worked... Mar 20 01:49:06 Can anyone be so kind to help me with a small issue? Mar 20 01:49:41 LoneSoldier728: Try list.toString() where "list" is the name of your list variable. Mar 20 01:49:49 Cryptic_: What's your Q? Mar 20 01:50:44 I'm trying to draw a line on a bitmap and place the bitmap into an imageview but it crashes my app Mar 20 01:50:51 Would you like me to paste the code? Mar 20 01:51:33 please Mar 20 01:51:40 public void dline(float x1, float y1, float x2, float y2, int color) { Mar 20 01:51:47 ImageView myView = (ImageView)findViewById(img); Mar 20 01:51:50 wo Mar 20 01:51:51 stop Mar 20 01:51:55 paste bin!! Mar 20 01:51:59 oh Mar 20 01:52:01 okay sorry Mar 20 01:53:25 http://pastebin.com/GMGt93GA Mar 20 01:53:35 Whenever i press the button it crashes the app onmy android device Mar 20 01:53:54 list.toString didnt do it Mar 20 01:54:16 Cryptic_, do you have a stack trace? Mar 20 01:54:25 Yeah one sec Mar 20 01:54:56 LoneSoldier728, for(String s : strings){stringBuilder.append(s);} Mar 20 01:55:00 ?? Mar 20 01:55:18 hm let me try that Mar 20 01:55:28 and then send in the new stringbuilderkk Mar 20 01:56:35 wait does that make it one big string though Mar 20 01:56:44 because I need them to be separate Mar 20 01:56:45 Cryptic_, since you're resetting the image on the view, don't bother pulling it out first Mar 20 01:56:56 LoneSoldier728, what do you want exactly? Mar 20 01:59:58 I need this Mar 20 02:00:51 I'm not getting an error anymore, It just makes a black box at the bottom o.0 Mar 20 02:01:03 ArrayList turned into ("item1", "item2") Mar 20 02:01:06 That's parent.filled or something o.0 Mar 20 02:02:08 I can't tell if it's shrinking the blue itemView or placing a black rectangle at the bottom (fills about 20% of the bottom of the phone screen Mar 20 02:03:03 myke .. List of all Windows system services : http://support.microsoft.com/kb/832017 , XP : http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/sys_srv_default_settings.mspx , List of system services and API of Windows : http://msdn.microsoft.com/en-us/library/ff818516%28v=vs.85%29.aspx , Server 2003 services list : http://www.microsoft.com/en-us/download/details.aspx?id=15940 (May 2004), Mar 20 02:04:57 where can i see all system services used by GOOGLE-ANDROID os ? with small/short description. Thanks in advance. Mar 20 02:06:30 LoneSoldier728, http://pastebin.com/YTyfVe8p Mar 20 02:06:52 that'll have a trailing comma, but i'll leave that as an exercise for the reader Mar 20 02:07:14 TErik: ask #android or #cyanogenmod Mar 20 02:07:51 I'm struggling to create the desired nested JSON using GSON. Any idea where I'm going wrong? https://gist.github.com/anonymous/ff906df8d475dc71a013 Mar 20 02:07:53 thanks, bankai_ Mar 20 02:10:22 getting this mebigfatguy android.database.sqlite.SQLiteException: unrecognized token: "532a3f6954f48ac02bf0bc30" (code 1): , while compiling: SELECT * FROM table WHERE objectId=(532a3f6954f48ac02bf0bc30) Mar 20 02:10:26 thammond, you need to use the paramerterised type for map, not map.class Mar 20 02:10:51 I am getting that error... the object should be a string and the reason why Mar 20 02:10:56 alexPP ill try that Mar 20 02:11:22 So any idea how to do a simple line draw? lol Mar 20 02:13:29 alex_PP: so the GSON should be something like this - new GsonBuilder().create().toJson(choice, Map); Mar 20 02:14:05 alex_PP that worked except the comma... Mar 20 02:14:34 extra at the end... hm should I change it to a regular for loop and if the position equals size ignore the comma Mar 20 02:15:33 thammond, https://stackoverflow.com/questions/7299669/why-does-gson-tojson-serialize-a-generic-field-to-an-empty-json-object Mar 20 02:16:11 LoneSoldier728 == mebigfatguy ? Mar 20 02:16:29 huh Mar 20 02:16:33 lol Mar 20 02:16:37 or was that the error message ? Mar 20 02:16:39 i copied and paste it from Mar 20 02:16:40 O.o Mar 20 02:16:47 java because he told me to go to android Mar 20 02:16:59 dont ask me why he has that nick Mar 20 02:17:09 kinda funny :) Mar 20 02:17:29 thanks alex_PP ! worked Mar 20 02:18:10 LoneSoldier728, http://pastebin.com/nRNcZtDW Mar 20 02:18:46 http://pastebin.com/9XrY5TKa Mar 20 02:18:50 which is more efficient Mar 20 02:18:53 mine is on the bottom Mar 20 02:19:05 I actually never understood Mar 20 02:19:09 Cryptic_, try setting the style of your paint to STROKE Mar 20 02:19:11 between the fanicer for loop Mar 20 02:19:44 your's calls size() many times Mar 20 02:19:47 p.setStyle(Paint.Style.STROKE);? Mar 20 02:19:49 once would do Mar 20 02:19:53 Cryptic_, yeah Mar 20 02:20:00 I know I can set size outside Mar 20 02:20:04 ok running lemme test it Mar 20 02:20:07 but is it more efficient to do ur loop Mar 20 02:20:33 and for(O o : o) uses an interator which is much faster for some types of list Mar 20 02:20:44 really depends on the list Mar 20 02:20:55 get(i) is really slow in a linked list for example Mar 20 02:21:04 Same thing happens Mar 20 02:21:10 @codeguru Mar 20 02:21:15 what is a linked list exactly... the list will be a bunch of ids Mar 20 02:21:40 in a linked list, each entry contains a link to the next one Mar 20 02:21:54 so to get 10, you gave to though 1-9 Mar 20 02:22:02 ^ and in a circular, a link to the 'last' one Mar 20 02:22:04 (there's some optimiseations usually) Mar 20 02:22:44 http://xlinux.nist.gov/dads// Mar 20 02:23:07 http://xlinux.nist.gov/dads//HTML/linkedList.html Mar 20 02:23:44 sorry Cryptic_ I'm out of ideas and have to do some work :( Mar 20 02:24:24 Nvm i'll move onto another task, thanks for helping, i just started today. Hoping to make some apps dfor arduino nerwork interfacing with graphs ect Mar 20 02:26:42 alex_PP what is v? Mar 20 02:29:29 skipLists can be a good probabilistic alternative data structure implementing a simple list ; o(logn) Mar 20 02:29:59 android has a skiplist i think Mar 20 02:30:46 hm, just concurrent ones Mar 20 02:30:53 v is the current VIEW Mar 20 02:31:40 Atleast that's what i think o.0 Mar 20 02:31:59 LoneSoldier728 a java data structure will have a Marker interface (RandomAccess) if internally it has efficient random access Mar 20 02:32:06 http://docs.oracle.com/javase/7/docs/api/java/util/RandomAccess.html Mar 20 02:32:18 java, that is from Java library Mar 20 02:32:42 yeah i just went with my method of a for loop Mar 20 02:33:29 alex_PP thanks for that SO - very helpful. The map definitely needed parametrized. Unfortunately it still contains all of the backslashes in it after being updated - https://gist.github.com/guitarlover52/b2d16d27f005dcb75ff9 Mar 20 02:35:46 damn now this error lol why cant errors leave me alone Mar 20 02:36:14 android.database.sqlite.SQLiteException: near ",": syntax error (code 1): , while compiling: SELECT * FROM table WHERE id=(1, 2) ... it is an ArrayList ... that does not need a string around it right when querying... Mar 20 02:37:42 Use IN instead of = Mar 20 02:38:45 LoneSoldier728: test your queries first via CLI if you're having problems Mar 20 02:42:02 thanks man codeguru Mar 20 02:42:13 no problem Mar 20 02:46:12 is anyone else here driven batshit crazy be eclipse's autocomplete? if i type the wrong letter and then backspace, the list should come back up to match what i backspaced to Mar 20 02:46:15 this is making me nuts Mar 20 02:46:25 is there a way to fix that? Mar 20 02:46:35 thats one thing i like bout AS Mar 20 02:47:11 i looked into it a bit but i figured i didn't need it since i was already familiar with eclipse and i do everything via code anyway Mar 20 02:47:37 i'm maybe willing to switch just for that reason... i'm so used to xcode doing it and i think that's part of what makes me batshit crazy Mar 20 02:48:11 switching from eclipse to AS was a dream. eclipse wasted tons of time with the random bugs&crashes&restarts. So many random bugs Mar 20 02:48:37 often i have to restart eclipse because my logcat output disappears Mar 20 02:48:44 that's really the only other thing i do'nt like Mar 20 02:49:10 i guess i should look at AS then Mar 20 02:49:19 ultra have you tried running it from the DDMS perspective? Mar 20 02:49:29 there'd be points where using eclipse i'd have 5 restarts within a 30min period. then work for awhile, then crash, then upon reload it'd crash at splash&i'd have to search what .xml file to delete Mar 20 02:49:30 that usually will kickstart the logcat again Mar 20 02:49:33 was a big pain Mar 20 02:50:23 thammond: i'm not sure what that is so no, i'll google it though Mar 20 02:51:31 ultra go to Window > Open Perspective > DDMS Mar 20 02:51:35 got it Mar 20 02:51:49 i'll try switching to it next time logcat quits Mar 20 02:51:57 even if it doesn't restart the logcat Mar 20 02:52:06 the output you get in that perspective is the same as the logcat Mar 20 02:52:14 i suppose there's no way for it to bring the autocomplete back up when i backspace Mar 20 02:52:18 ok Mar 20 02:52:21 Hi, does anyone know why IPv6 is breaking VPN connections??? Mar 20 02:52:24 but usually it also re-connects the emulator to the logcat Mar 20 02:52:39 i don't even use the emulator anymore, that makes me nuts too Mar 20 02:52:57 I use it too much ;) Mar 20 02:53:13 higher api versions are so slow Mar 20 02:53:20 my app is primarily a touch interface for music software on the computer, so the emulator doesn't do much for me unless i just want to see how a control is working out visually Mar 20 02:53:33 er not primarily, tha'ts all it does Mar 20 02:54:01 sounds pretty cool Mar 20 02:54:02 hello all Mar 20 02:54:21 hey qubez Mar 20 02:54:24 hey ultra- Mar 20 02:55:14 has anyone here ever advertised their app on reddit? Mar 20 02:55:25 mine's pretty niche market so i think i might give that a shot Mar 20 02:55:32 I have ultra- Mar 20 02:55:36 how did it go? Mar 20 02:55:45 didn't get much traction, but after about a year of release I got a huge uptick Mar 20 02:55:53 im not sure, hard to predict what reddit did for it Mar 20 02:55:58 any idea where the uptick came from? Mar 20 02:56:12 no clue, lots of users in India / Asia Mar 20 02:56:32 is it more for the general population or is it niche? Mar 20 02:56:42 general population Mar 20 02:56:49 search for To Do Mapr Mar 20 02:56:51 or just mapr Mar 20 02:56:53 yeah i wouldn't think reddit would work as well for that Mar 20 02:57:17 im working on Glassware now, not a port of this app just another project Mar 20 02:58:00 well at least trying to learn the gdk a bit :) Mar 20 02:58:05 looks pretty decent Mar 20 02:58:52 yeah it does Mar 20 02:59:20 I'm working on a survey sdk developers can plug into their apps. Then users can take surveys in exchange for in-app content. Basically a win win win for market researchers/app users/developers **** ENDING LOGGING AT Thu Mar 20 02:59:58 2014