**** BEGIN LOGGING AT Mon Oct 21 02:59:59 2013 Oct 21 03:28:57 am i correct in thinking that this path: content://media/external/images/media//storage/sdcard0/Android/data/my.awesome.app/.cache/ is actually 2 paths accidentally concatenated together? Oct 21 03:44:46 hi all using intellij. what is the best way to set up for andrid dev (first time here) and i seem to get conflicting info from android studio and plugin. can someone assist Oct 21 03:47:01 it's already setup for android dev Oct 21 03:53:06 anyone here use IntellyJ idea? how to setup the adb emulator? Oct 21 03:56:02 it comes with the sdk Oct 21 03:58:26 my answer: yes, it was Oct 21 04:00:28 i get these error: android-apt-compiler: Cannot run program "C:\Software\eclipse\Development\sdk\platform-tools\aapt.exe": CreateProcess error=2, The system cannot find the file specified Oct 21 04:01:26 * jak2000 looking aapt.exe in my laptop Oct 21 04:01:32 just a guess, but its setting for where the SDK is located is wrong Oct 21 04:02:44 are you using openjdk ? Oct 21 04:02:49 the sdk work on eclipse... but i try solve the problem Oct 21 04:02:55 not.. Oct 21 04:03:43 i get it from developer.android.com Oct 21 04:04:50 where is that aapt.exe? there's a funky bug in IJ, which i thought was fixed, where it references the wrong dirs for certain SDK versions Oct 21 04:06:54 in build-tools Oct 21 04:07:21 it's no longer in platform-tools Oct 21 04:07:45 it hasn't been there since like the v22 sdk release Oct 21 04:13:20 pfn, i have a menu named Build, but where specify the location of aapt.exe Oct 21 04:14:46 have a read of this ( if this is the problem ) http://stackoverflow.com/questions/16588969/android-hello-world-compile-error-intellij-cannot-find-aapt Oct 21 04:16:51 ok, reading Oct 21 04:20:09 im very wise i abstract my network interface ^^ Oct 21 04:21:57 bankai_: when i select new project >> there is in the sdk combobox Oct 21 04:22:47 not very helpful option Oct 21 04:23:02 configure your SDK location Oct 21 04:23:10 maybe you're all out of sdks? Oct 21 04:23:42 bankai_: you said it was already configured so i thaught there was already an sdk dir someware Oct 21 04:24:10 YOU SAID. Oct 21 04:24:23 bankai_: is there a plug in for it or do i need to dl the android sdk Oct 21 04:24:24 it's setup for android development, yes, not individually configured for your system... Oct 21 04:24:42 dl the sdk and tell it where it is Oct 21 04:25:15 bankai_: ah thx , do you have a good link, i have tried and i get a zip that won't open Oct 21 04:25:34 http://developer.android.com/sdk/index.html Oct 21 04:26:22 bankai_: what is adt good for is't that in sdk Oct 21 04:28:19 bankai_: i know it really doesn't matter, what sytem are you on lin , win? Oct 21 04:28:29 freebsd :P Oct 21 04:29:00 did you put your sdk in /usr or where did you put yours Oct 21 04:29:17 doesn't matter where you put it Oct 21 04:30:04 thats why i said "I knew it didn't matter " :-) Oct 21 04:31:51 blunden: is adb the desired method to store variable when going between activities or the .file the the app dir Oct 21 04:32:08 is one more the norm then the other Oct 21 04:43:59 bankai_ i now can generate the apk Oct 21 04:44:07 swoite Oct 21 04:44:25 and tested on my real device... but not run in the adb/avd .. only start the emulator Oct 21 04:45:32 in the real device i work OK Oct 21 04:47:54 i know why Oct 21 04:48:03 DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/com.example.HelloWorldAndroid" Oct 21 04:48:03 pkg: /data/local/tmp/com.example.HelloWorldAndroid Oct 21 04:48:03 Failure [INSTALL_FAILED_OLDER_SDK] Oct 21 05:09:31 bankai_ http://www.rafb.me/results/GY3vYO13.html why the error? Oct 21 05:11:11 maybe that white space you've got at the start of the tag Oct 21 05:11:30 you know, how to know? Oct 21 05:12:51 arghhhh.... Oct 21 05:17:08 done!!!!! bankai_ thanks Oct 21 05:17:18 :) Oct 21 05:17:23 Samsung Galaxy Tab® 3 7.0 Wi-Fi Oct 21 05:17:36 you have some tutorials? i want learn how to work with SQl Lite ? Oct 21 05:17:37 how bout dat tab Oct 21 05:19:10 heaps of sqlite tutorials online, they are all much of a muchness Oct 21 05:20:49 ok i am try looking on youtube :) IntelliJ is a good IDE... Oct 21 05:22:27 I want to put a RelativeLayout within a scroll view, the layout will hold a large amount of buttons arranged in custom configuration, how should I be adding these buttons to the layout in order to have the scrollview enabled? So far I can see the buttons but I can't scroll anything. Oct 21 05:23:06 http://pastebin.com/5NB4VcaC Oct 21 05:54:03 bankai_ you know how to create tables on windows and pass it to Android(sql lite)? Oct 21 05:54:28 what do you mean Oct 21 05:55:02 yes i want design my database with tables on my windows OS, and export to my android table is possible? Oct 21 05:56:09 you can use sqlite on windows to plan our your db, get your statements correct etc. then dump it and use that on android ( not sure if that answers your question ) Oct 21 05:56:42 ok Oct 21 05:56:55 yes so so. where can download SQL lite for windows? Oct 21 05:57:15 http://www.sqlite.org/download.html Oct 21 06:13:55 in intellyJ exist an automatic way (pressing Ctrl+alt or something) for import all libraries need? Oct 21 06:15:14 ctrl+shift+O Oct 21 06:15:36 i would also highly recommend the preference "auto import unambiguous types" Oct 21 06:16:46 you can also command+shift+A to search for just about anything you need Oct 21 06:19:52 with Alt+Enter import :) Oct 21 06:47:45 ugh, i havent changed anything, but for some reason it doesnt want to load my library anymore Oct 21 06:51:29 <_the_surfer_> what can be issues if app is working on version 2,3, 4.0 and 4.1 (multiple samsung devices) and not working on 4.2 (htc device)..? is there any possibility that model of device can influence on that or only version? Oct 21 06:51:37 <_the_surfer_> *2.3 Oct 21 06:54:25 we've experienced a few issues; what are you experiencing Oct 21 07:00:22 we had the android gradle plugin classpath 'com.android.tools.build:gradle:0.5.+' Oct 21 07:00:48 but that is no longer supported so i changed it to 0.6.1 but what is the latest version ? Oct 21 07:02:47 for use sqllite on my android device need install something? sqlite? Oct 21 07:03:32 <_the_surfer_> otiose i dont know, no experience in this part of issues so far... your experiences and opionion? Oct 21 07:04:19 well, we havnt had too many problems so i cant say a lot Oct 21 07:04:22 my Main Toolbar isn't showing all the options? Oct 21 07:04:40 <_the_surfer_> otiose on this htc device version 4.2 app is "loading" but no error, just "staying at same place" Oct 21 07:04:46 basically the biggest one (and the only one i can remember) is that some of our image views would go blank when an animation ended Oct 21 07:04:58 nvm Oct 21 07:04:59 huh, well i dont know Oct 21 07:05:01 got it Oct 21 07:05:57 <_the_surfer_> otiose best program to use for logs? and debug... Oct 21 07:06:21 no clue, we're just using eclipse Oct 21 07:06:32 How would I make an ImageView stretch the image to fill the width, only showing the top of the image if the ImageView height is too small? centerCrop kinda works but it shows the centre, not the top Oct 21 07:10:41 ok, so i think this might be my build settings or something screwed up... Oct 21 07:11:20 I have a subproject that has an external .jar in it, which in turn references a .so file in the same project (using the jni; i think) Oct 21 07:11:48 When my actual project references classes within that jar, it fails to load the .so library Oct 21 07:12:02 any tips of what to check? Oct 21 07:16:42 any advice: http://www.rafb.me/results/zRLrCv14.html when i press the button named: Create it say an error "Unfortunately, StudentDatabase has stopped" (and not say the message: "Toast.makeText(MyActivity.this,"Alta....1",Toast.LENGTH_LONG).show();") the first line of method: Adddata, strange when i click Close button it stop normally the app, any advice? Oct 21 07:25:58 jak2000: what does your log tell you? Oct 21 07:26:32 Leeds i use intelliJ and in a window named: All messages i get this: http://www.rafb.me/results/oJPKsc84.html Oct 21 07:27:09 jak2000: and when you read that log, what does it tell you? Oct 21 07:27:19 what is the actual error, rather than the entire log? Oct 21 07:28:09 i try see logcat in intellij Oct 21 07:28:14 wait please Oct 21 07:28:34 well crap; for some reason it had a /lib/armeabi/libthing.so and not a /lib/armeabi-v7a/libthing.so after it was building Oct 21 07:28:57 i dont know if it did, or why it worked before.... but copy/pasting into the other architecture seemed to work Oct 21 07:28:58 :/ Oct 21 07:31:58 jak2000: I can see the error, I just want to know if you can Oct 21 07:32:36 by moment not reading the entire log line by line Oct 21 07:33:13 you shouldn't need to read the entire log... you should be able to find the message which refers to your code Oct 21 07:34:59 java.lang.IllegalStateException: Could not find a method Adddata(View) in the activity class com.example.StudentDatabase.MyActivity for onClick handler on view class android.widget.Button with id 'button' Oct 21 07:35:05 this is the real error right? Oct 21 07:36:28 looks like it, yes Oct 21 07:41:21 http://www.rafb.me/results/zRLrCv14.html line 39 and 149 was correct not? or the problem is in line 149 because its declared private...(change to public and test)... Oct 21 07:46:07 by moment work (not know if added the data to table... but not show anymore any error Oct 21 07:47:34 now click on showdata button and get same error: http://www.rafb.me/results/Hs6GTX34.html the method: Showdata(View view) is declared as public... reading the error on line 385, not understand why crash :( Oct 21 07:50:12 so you look at the log, you find the error, you fix it Oct 21 07:50:19 that's what development *is* Oct 21 07:50:54 JakeWharton, ++ thnx for Picasso caching Oct 21 07:50:55 win Oct 21 07:52:12 Leeds yes i understand, but by moment, i havent the hability of understand the errors, :) Oct 21 07:52:40 so again, what is the actual error? Oct 21 07:54:51 in adroid emultator: "Unfortunately, StudentDatabase has stopped" in the logfile: http://www.rafb.me/results/zRLrCv14.html i think is: Caused by: android.database.CursorIndexOutOfBoundsException: Index -1 requested, with a size of 2 at com.example.StudentDatabase.MyActivity.Showdata(MyActivity.java:87) Oct 21 07:55:12 correct! Oct 21 08:01:01 :) (i added 3 records, before click on show data), i think the problem is in button adddata, i think the table is empty.... but continue reading... Oct 21 08:21:46 http://pastebin.com/aXpKuq8R Any idea why my subclass of FrameLayout doesn't show any child views? The size is calculated correctly since it shows up if I set a background colour, but unless I set a fixed height instead of wrap_contents, none of the child views display. Oct 21 08:24:58 Leeds are you there? Oct 21 08:27:38 sort of... on the phone with my mum Oct 21 08:29:31 Is there's a panaroma library available? I want to integrate panaroma pics into my app. Oct 21 08:29:47 And, hmm, what's the simplest way to sync data to server? (I'm developing basically a CRUD app but the changes made on the local database must be pushed to a central server. Plus, the changes must be tied to user accounts. ) Oct 21 08:31:01 Ideally I'd prefer to use RMI and auth in the remote server making the client as lean as possible but I guess that's not a choice in Android. I'd rather not write a REST server since am not exactly sure how to handle secure auth with REST and well because am lazy. Oct 21 08:31:27 ok, apparently calling super.onMeasure first fixes it Oct 21 08:34:40 leslie, the problem was that you need to measure you're children Oct 21 08:34:44 *your Oct 21 08:34:56 they all have size 0x0 until you do Oct 21 08:35:13 ah right. is just calling super ok? Oct 21 08:36:58 yeah, that just measures the children and sets the size to the max + padding and margins Oct 21 08:37:10 http://grepcode.com/file/repository.grepcode.com/java/ext/com.google.android/android/2.2_r1.1/android/widget/FrameLayout.java#FrameLayout.onMeasure%28int%2Cint%29 Oct 21 08:39:04 ahh ok, so you're responsible for measuring the child views, didn't know Oct 21 08:39:56 normally, you'd have to measure your children to know how big you are Oct 21 08:40:38 *nod* Oct 21 08:41:36 basically I just wanted to constrain a view to being square Oct 21 08:44:13 to do that, i'd call super, then setMeasuredDimensions with the result of Math.max(getMeasuredWidth, getMeasuredHeight()) Oct 21 08:44:36 alex_PP quick question Oct 21 08:45:45 hm Oct 21 08:45:57 Hello :) Oct 21 08:45:58 I used SCALE_Y, PivotY = 0. Problem is, the setScaleY doesnt return the right value. Example. Height = 300, ScaleY = 1.68. Manual calculation returns 503 but the setScaleY transform the height to 470 Oct 21 08:46:00 any idea? Oct 21 08:46:40 Does anybody here use BrowserStack and know if it's possible to debug its Android and iPhone emulations? Oct 21 08:48:58 I don't think that'd work, alex_PP Oct 21 08:49:23 http://pastebin.com/A0mPACdD Oct 21 08:49:33 hello everybody Oct 21 08:50:00 hey can anybody please explain me what does taskaffinity actually does ? Oct 21 08:50:17 (that's for an aspect ratio of 3:2) Oct 21 08:50:49 what I have seems to work ok though Oct 21 08:51:54 sunny_slls http://stackoverflow.com/questions/17872989/android-task-affinity-explanation ? Oct 21 08:53:22 leslie: i read this link and its fine but this is an example of only one stack. its unnecessary to use taskaffinity when you are dealing with only one stack Oct 21 08:53:46 hm Oct 21 08:53:47 what in case i have multiple stacks ? what will happen in that case ? Oct 21 08:56:15 not sure Oct 21 08:56:53 Maziz, sorry, what was your question, lost my connection Oct 21 08:57:39 I used SCALE_Y, PivotY = 0. Problem is, the setScaleY doesnt return the right value. Example. Height = 300, ScaleY = 1.68. Manual calculation returns 503 but the setScaleY transform the height to 470 Oct 21 08:57:44 no problem Oct 21 08:58:47 leslie: ok no problem . Thanks :) Oct 21 09:00:14 sunny_slls, does this help at all? http://www.slideshare.net/RanNachmany/manipulating-android-tasks-and-back-stack Oct 21 09:02:50 300 * 1.68 = 504 for me Oct 21 09:03:03 oh yeah, i see Oct 21 09:03:06 gmmmm Oct 21 09:03:31 manually it works Oct 21 09:03:33 Maziz, pastebin? Oct 21 09:04:11 im scalling the child view in a gridview Oct 21 09:11:05 http://stackoverflow.com/questions/19488762 Oct 21 09:11:47 Hello. I'm trying to get the time between my future date and current date. I have tried: futureDate.getTime() - (new Date().getTime()), but I get a negative value. I have confirmed that the future date is in fact in future. Oct 21 09:13:31 hi! i'm trying to make an android that was build from sources and run on emulator be able to start from snapshot by specifying a "-spanstorage" flag, it seems to work, but adb can't connect to it, is it a bug or what, avd's that were created using sdk seems to work correct in the same case. Oct 21 09:14:41 Maziz, Oct 21 09:14:44 no idea Oct 21 09:20:47 Hm, I can't seem to get the AlarmManager to execute my activity/service at the right time :/ Oct 21 09:20:49 or at all Oct 21 09:21:57 is it possible get an emulator log not using adb? Oct 21 09:24:27 public static native void resize(int x, int y); Oct 21 09:24:30 oops Oct 21 09:25:07 tomorrow im gonna buy this so called samsung galaxy tab Oct 21 09:25:17 or whateer approx 200$ tab i find at target or walmart Oct 21 09:25:36 then i can properly test goog multiplayer Oct 21 09:29:22 sigh Oct 21 09:29:26 mediacodec = :( Oct 21 09:33:26 i see Oct 21 09:33:27 hmm Oct 21 09:34:54 Hello, if the application name is truncated on the app menu screen, is that the dev. fault or androids? Oct 21 09:35:35 it means your app name is too long Oct 21 09:35:38 That means you have a long name heh Oct 21 09:35:50 There is a really easy fix for that ;-) Oct 21 09:35:52 depends, i think Oct 21 09:36:06 if it's truncated on 99% of medern devices, then it's too long Oct 21 09:36:17 I thought it would be "dotted" if its too long Oct 21 09:36:20 now its truncated Oct 21 09:36:21 if it's truncated on a HTC cha cha, i wouldn't worry Oct 21 09:36:31 Nexus 7 (2013) here Oct 21 09:36:51 you can scroll animate it if its too long for a cool effect Oct 21 09:37:45 ha, kust looked, no truncated names on my phone, but backgammon is wrapped just before the last n Oct 21 09:37:50 *just Oct 21 09:41:31 interesting, the internet says, if it's truncated at a space, it just cuts it off, midword you get an ellipses Oct 21 09:42:48 is the galaxy s2 a really shitty phone, or is it just mine? Oct 21 09:43:41 Hmm, guess we have to rename our app than Oct 21 09:44:56 next app i write will be called supercalifragilisticexpialidocious Oct 21 09:45:06 lol Oct 21 09:49:25 I am trying to get a service to run at a specific hour/time every 24 hours. Oct 21 09:49:27 https://gist.github.com/flexd/9b49bcbf8fc5daa24c62 Oct 21 09:50:04 This is how I've figured it is supposed to be (note: it's trying to repeat every 10 seconds now), but the service never starts// my startservicereceiver never gets a broadcast to start the service :/ Oct 21 09:51:10 I'm not getting any error, and I see I have like 18 alarms going at this point, so it's just a matter of wrong time I think Oct 21 09:51:24 The time is stored as a long in the preferences Oct 21 09:58:37 is it possible to install man pages for the command line android tools like adb and android itself? Oct 21 09:59:23 how can for (Thing thing : list) { thing.param = null; } give me a null pointer exception in the thing.param = null? Oct 21 09:59:44 otiose: Thing does not have a variable param? Oct 21 10:00:14 no, it does Oct 21 10:04:11 can the list you're using contain null? Oct 21 10:18:30 any tips for interview for android dev? Oct 21 10:20:07 know how to do android dev Oct 21 10:20:15 anyone tried android studio 0.3? Oct 21 10:21:19 otiose: seriously? Oct 21 10:26:03 Baluse, yes we use it at the office Oct 21 10:26:13 updated from 0.2.13 to 0.3 this morning Oct 21 10:26:16 and so far no issues Oct 21 10:26:19 Baluse: Yes, using it too Oct 21 10:28:14 Baluse, any reason you are asking? Oct 21 10:28:27 nop just seems nice Oct 21 10:28:37 i never liked eclipse Oct 21 10:28:43 did you use any previous versions of android studio? Oct 21 10:28:52 yes 0.2.3 Oct 21 10:28:54 oh eclipse is .. you cant compare the 2 Oct 21 10:29:00 not really Oct 21 10:29:37 on my scala projects and scala android projects i moved to intelliJ and java android i am Android Studio Oct 21 10:29:56 imho best jvm ide no matter the langauge Oct 21 10:38:24 yep and fast for java Oct 21 10:38:35 fast for all jvm langauges Oct 21 10:42:18 any tips how to create namespaces ? Oct 21 10:42:41 packages Oct 21 10:42:53 what do you mean namespaces as in C# namespaces? Oct 21 10:43:14 i mean packages Oct 21 10:43:29 its a reverse of the domain you own Oct 21 10:43:49 like mine is za.co.xah.whatevernameiwant Oct 21 10:43:52 yep i did this already Oct 21 10:44:02 but then i want to create packages Oct 21 10:44:56 like what? Oct 21 10:45:02 like .ui Oct 21 10:45:11 .datamodel Oct 21 10:45:22 for ui / data / web service Oct 21 10:45:35 also for ui it seems that i need for data adapters Oct 21 10:45:42 and tons of stuff i cant predict Oct 21 10:45:59 should i create domain.model domain.service domain.ui ? Oct 21 10:46:20 hello I have problem with calling method onSensorChanged Oct 21 10:46:22 if i need class to write local data? Oct 21 10:46:52 SensorEventListener is implemented but still nothing happen when I rotate my device Oct 21 10:47:25 I'm using se wt19i with 2.3.4 and Oct 21 10:50:13 anyone/ Oct 21 10:51:26 People of Android: did the AsyncTask change in java? Why is this not working: http://pastebin.com/J7Dj9zEG, I added the error message as a comment to the top of the function call Oct 21 10:51:42 what is the issue ehre? Oct 21 10:52:08 http://arstechnica.com/gadgets/2013/10/googles-iron-grip-on-android-controlling-open-source-by-any-means-necessary/ Oct 21 10:52:58 zquad, new AsyncTask.. Oct 21 10:53:29 you shouldn't use inline class like this Oct 21 10:53:37 yeah.. Oct 21 10:53:56 I know :( Oct 21 10:54:05 I think java generics default to Object Oct 21 10:54:20 so your doInBackground would have to take Object.... Oct 21 10:54:27 the return type I have is String Oct 21 10:54:35 the superclass is Result Oct 21 11:01:08 I thought type Result extends Object so what was wrong with returning type String? Oct 21 11:11:33 any of you folks using emacs for android development? If so : did you get semantic completing on the SDK classes properly? Oct 21 11:12:05 zquad, if you're referring to the generic parameter called Result in AsyncTask, it's not a type at all, it's just a placeholder for whatever type you give it Oct 21 11:24:02 Thanks Zharf My ide does not recognize it at all Oct 21 11:41:03 is it possible to have an icon as background on an item in actionbar menu Oct 21 11:41:22 android:background accepts drawable, but its not showing Oct 21 11:42:17 does xliff workz with gignerbread? Oct 21 11:54:49 Can someone explain how "Minimum required SDK" and "Target SDK" come into play when creating an app? Should I just worry about my minimum support? Oct 21 11:59:22 foolsh: of course Oct 21 11:59:47 if you set 14, your app doesn't work on android <4 Oct 21 12:01:38 foolsh: you should set it to 14 Oct 21 12:01:42 and target to 18 Oct 21 12:02:07 Ok, I get that setting a minimum SDK with inhibit the compatibility with older devices, but how does setting a Target come into play Oct 21 12:02:26 foolsh: lets you use things not available in minimum if you if else them Oct 21 12:06:05 Ok thanks! I see "I think I see" if I use a feature that is available only in a newer SDK, but allow older devices to run it with some other *kludge* to take it's place on the older device, I would use target and minimuim SDK version accordingly. Oct 21 12:07:14 yes Oct 21 12:07:22 foolsh: minimum = 14 and you'll be fine Oct 21 12:07:32 anyone developing on Ubuntu using Android Studio? Oct 21 12:07:54 where did you export JAVA_HOME? Oct 21 12:09:28 svector: set it to where you installed oracle's JDK Oct 21 12:09:33 1.6 Oct 21 12:17:40 hello which library to use for rest client in android? Oct 21 12:17:58 i had used a custom http library from a dude and gson in past with success Oct 21 12:18:06 Baluse: http://square.github.io/retrofit/ Oct 21 12:18:20 now there seems to be retrofit/volley / okhttp + gson / jackson etc Oct 21 12:18:25 and tons of others Oct 21 12:18:35 retrofit has few questions at stackoverflow Oct 21 12:18:46 and most people seem to prefer volley Oct 21 12:19:29 Does the android keyboard send font data together with the text when typing in a text field? Oct 21 12:19:48 Because if not, I don't understand how these emojis work Oct 21 12:20:02 Baluse: use retrofit. Oct 21 12:21:22 ok but it seems that i cant customise anything Oct 21 12:21:26 seems very simple Oct 21 12:22:23 funkbox: yeah. I was wondering which file I write that to. I now know it /etc/environment. Thanks anyway Oct 21 12:22:30 also who knows if retrofit is going to use latest version of okhttp Oct 21 12:22:34 and jackson Oct 21 12:23:48 Baluse: I hope you do. You supply he dependencies or load the latest versions using maven. Oct 21 12:24:13 heh but seems no way to use ignore etc Oct 21 12:27:36 ignore? Oct 21 12:34:29 Tried using a 9-patch drawable as background on a actionbar menu item and still not working Oct 21 12:34:42 and it is valid, checked with sdk tool Oct 21 12:42:32 noone here used a background for an item in actionbar ? Oct 21 12:42:55 <_the_surfer_> best logger for debugging apps on real device... Oct 21 12:42:57 <_the_surfer_> ? Oct 21 12:44:32 _the_surfer_: I use something called trace to send stacktraces to a webservice on app startup Oct 21 12:44:57 made by nullwire Oct 21 12:51:50 frigging buttcrack of dawn Oct 21 12:52:33 _the_surfer_: Android Studio has a real handy logcat window that will tell you everything coming from a device connected with adb. Not just what your app is doing but everything the device is up to. Very nice. but not remotely like trace that Onack suggested. Oct 21 12:54:39 yea I am using IntelliJ Idea for devlopment(almost same as Android Studio), great for live debugging, but not for devices "out there" Oct 21 12:55:28 <_the_surfer_> Onack foolsh: thx, i have problem becuase this is not native android app, came from different framework so i dont have console "active" in eclipse... Oct 21 12:59:22 how is it possible that an intent loses its extras? i have an search intent, intercept it before it is passed to another activity and put some additional extras to it, then send it with super.startActivity(intent). Oct 21 12:59:36 but the receiving activity doesn't get any intent extra Oct 21 12:59:41 not even the searchmanager query Oct 21 13:45:53 hello Oct 21 13:46:05 so I have a MediaRecorder.OnInfoListener callback and I get the 1000 code Oct 21 13:46:11 which is not in the docs... Oct 21 13:46:41 i.e. what=1000, extra=0 Oct 21 13:48:41 so does anyone else get it or know what it corresponds to ? Oct 21 13:53:49 guys which type of sensor I shoud use when I want create compass Oct 21 13:54:05 magnetic? Oct 21 13:54:28 p_l i did it Oct 21 13:54:48 that was fast Oct 21 13:55:38 Voicu I try it elier :P Oct 21 13:55:55 Dudi: and? Oct 21 13:55:59 maybe you can help me, because I goe with this question Oct 21 13:56:00 http://stackoverflow.com/questions/7978618/rotating-an-imageview-like-a-compass-with-the-north-pole-set-elsewhere Oct 21 13:56:11 or rather solution for question Oct 21 13:56:27 Voicu not working as I expected Oct 21 13:56:43 wait a sec I will pastebin my code Oct 21 14:01:28 ok my code Oct 21 14:01:28 http://pastebin.com/g7jtu3JS Oct 21 14:04:56 and in onSensorChagned baseAzimuth is geting <-15, 15> Oct 21 14:05:28 or rather ~ -15 , ~15 Oct 21 14:05:28 in the sdk is the plaform sdks in platform/ ? if so i checked my sdk dir platfom/ is emty Oct 21 14:06:36 whoever: I believe its platforms/ Oct 21 14:07:21 have you used the manager to download any platforms? Oct 21 14:07:22 mmarklar: ok, i left of the "s" but the directory is still empty Oct 21 14:08:01 mmarklar: no i assumed they were in the sdk , can you walk me through Oct 21 14:08:05 what os? Oct 21 14:08:13 ubuntu Oct 21 14:08:35 if the sdk is on your path just open a terminal and run 'android' Oct 21 14:08:42 that will open the SDK manager Oct 21 14:09:16 I think its located under $SDK/tools/ Oct 21 14:09:19 but not positive Oct 21 14:09:51 mmarklar: not on path, so /someExecutable , what the executable Oct 21 14:10:04 android Oct 21 14:10:09 and I think its under the tools/ dir Oct 21 14:10:23 noone make compass? Oct 21 14:10:34 lol, stupid me, thats what i ment to ask what dir was it under Oct 21 14:10:40 :) Oct 21 14:12:11 Mek: so what do i want to grab from the manager? the defaults , anything in addition Oct 21 14:12:38 mmarklar: so what do i want to grab from the manager? the defaults , anything in addition Oct 21 14:13:27 mmarklar: to target the most devices should i use 2.x , lower or higher? Oct 21 14:13:50 whoever: these days? platform 10, I think, which was iirc 2.3.3 Oct 21 14:13:54 whoever, API 10 or above Oct 21 14:14:10 really depends what you want to do. check this out: http://developer.android.com/about/dashboards/index.html Oct 21 14:14:50 this is another interesting way of looking at it https://upload.wikimedia.org/wikipedia/commons/7/7e/Android_historical_version_distribution.png Oct 21 14:15:59 p_l: Kegsay thx, so 2.3.3 is aka platform 10 Oct 21 14:16:41 is there a method to the madness that kernal and platform are different numbers Oct 21 14:17:18 the api level is just a nice int to use in your code, rather than having to parse version numbers Oct 21 14:18:30 Kegsay: thx Oct 21 14:19:33 i just ran across kitkat last night, does anyone know what it will offer that jb does not Oct 21 14:19:54 crappy sms permissions is all I know about it Oct 21 14:20:19 but those "crappy sms perms" could mean a unified messaging app! Oct 21 14:20:38 . . . you can already do that Oct 21 14:21:42 with some issues, iirc Oct 21 14:22:53 yes, but will the masses reive some notification about the perms that they will have to agree to? honestly you display a eula or a perm dialog they will agree and not bother reading it Oct 21 14:23:03 I'm unaware of any issues with sms currently, other than you play a priority game with other apps for the order the apps receive the broadcast in, which can hide sms if intercepted early enough. Oct 21 14:23:45 which I guess is why they are saying "no, YOU sir will be the one true app to rule them all" Oct 21 14:23:50 Kegsay: afaik the new stuff is about fixing those race conditions Oct 21 14:24:36 is adb used in games or many the .file in the app directory that is associated with the app Oct 21 14:25:38 i guess my question is what is more the norm to use adb or a .csv for value retreaval in game play Oct 21 14:28:03 ... adb? adb is a debug tool. Unless you meant the sqlite3 that is included with android framework (which doesn't have a pre-set extension, but many people use .db) Oct 21 14:29:25 p_l: i believ that is what i ment i thaught the db was called adb and that there was a debugging tool by the same name, thanks for the correction Oct 21 14:29:57 weird. Never heard of anyone referring to the built-in sqlite as "adb", but oh well :D Oct 21 14:32:17 p_l: so is there a best practice of retaining passed values between activities, incase the activity that passed becomes a zombie ie : activity a calls activity b and passes values, then when activity b finishes you pass the values in activty b back to activity a , or would you solv this by reinstantiating activity a Oct 21 14:33:15 * whoever hopes that was clear but if not i can try and word it a different way Oct 21 14:34:44 whoever: if the activities are in single application, I'd farm out the data completely outside activities if it's anything big. There's also startActivityForResult and the callback onActivityResult Oct 21 14:35:23 Hi all, does somebody know if there's an opensource library/project which can do something like this: http://www.tlig.org/images/global/article/pageturning.jpg Oct 21 14:36:15 whoever: that is, if there's explicit caller -> callee -> caller flow of information that makes no sense otherwise (the callee could be for example a file chooser), I'd go with startActivityForResult Oct 21 14:36:42 FrancescoV, i found one once but i cant remember the name :o Oct 21 14:37:28 If it's common shared data they are working on, it should be outside Activities themselves in some form of data layer, be it just objects referenced through some singleton (like Application class), or Service or other more complex solutions Oct 21 14:37:56 brx_ ok :p I need one that can display 1 page and 2 pages like the images in previous link Oct 21 14:37:59 p_l: thx Oct 21 14:40:23 p_l: i am sadly still having issues selcting my sdk plaform after running android, when i go to /platfoms/android-10/ i have data/ images/ skins/ templates/ and none of them seem to have an archive Oct 21 14:40:48 you don't select SDK this way Oct 21 14:41:51 you point your IDE/whatever at the android sdk root dir when it asks for the path to *android* SDK, then select the API etc. in build scripts (either Ant/eclipse or gradle) Oct 21 14:42:35 p_l: ok, then how this is my first project setup so I don't have anything to choose under project sdk Oct 21 14:52:10 project sdk does not seem to make a lot of since of the totorials on how to select your project sdk. see :http://stackoverflow.com/questions/5271182/how-do-i-set-up-intellij-idea-for-android-applications Oct 21 14:52:47 I am using 12 so i am not asked to selecte a jdk, only project sdk Oct 21 14:58:59 whoever: that's the JDK. If you select an android project, it will also require adding somewhere in libs (sorry, don't have IntelliJ on this machine yet) an entry called "Android SDK", where you'll point it towards android sdk root and choose the api version, iirc Oct 21 15:12:52 p_l: so i select the jdk, like i would a standard java project ? Oct 21 15:13:06 iirc yes Oct 21 15:29:07 p_l: this is a little fustracting when navigate to /usr/lib/java/jvm/ it works for java projects but hot android for sdk Oct 21 15:29:19 ... what am i missing .. Oct 21 15:29:33 i must be missing a step somewhere Oct 21 15:31:06 hello Oct 21 15:31:11 should i use retrofit ? Oct 21 15:31:19 can classes be configured ? Oct 21 15:31:24 configured how? Oct 21 15:32:45 annotation which properties to ignore etc Oct 21 15:32:50 gson/jackson Oct 21 15:35:21 That has nothing to do with retrofit.. Retrofit just passes the input to gson, jackson or whatever you're using Oct 21 15:46:22 I need to change the state of a drawable. Should I use two and play around with .setVisibility() or use one with .setImageResource() Oct 21 15:46:47 They are just icons, so I guess the "performance hit" (if any) for setImageResource() should be minimal. Oct 21 15:54:19 SimonVT i see no documentation how to change these stuff Oct 21 15:54:45 should i use retrofit or plain okhttp Oct 21 15:54:48 Change what stuff? Oct 21 15:54:49 and gson/jackson Oct 21 15:56:35 i mean I want with retrofit to customize parsing or use jackson and have annotations at objects Oct 21 15:56:59 hm, my mediacontroller does not show any current time or total time left and right of the statusbar... only if I specify no theme on the activity... is this normal? Oct 21 15:57:12 Custise Gson, wrap in GsonConverter, pass to Retrofit.Builder Oct 21 16:05:47 Hello i'm having a problem with a custom prefenrence. It keeps saving the current state when ever i'm closing the dialog no matter which button i use(ok or cancel). Here is the part of the code i think could be relevant. http://www.pasteall.org/46664/java I'd really appreciate if someone could take a look at it. Thanks in advance for your help. Oct 21 16:37:13 any idea how to import metrofit library at android studio ? Oct 21 16:37:23 i added it at dependencies but cant see it at import Oct 21 16:41:08 open the gradle pane and click the refresh button Oct 21 16:42:59 i am tring to run a simple hello wold and my emulater is not launching , can someon assist Oct 21 16:44:43 where is this Oct 21 16:45:29 i get error "ADB is not responding" you can wait or kill, if i wait longer i just get the same error message Oct 21 16:46:41 Baluse: when i click run i am given a dialog asking usb device or emulater, i select emulater, and then the targen to emulate in the drop down, apply and run Oct 21 16:47:38 ok Oct 21 16:47:55 however how can i add something at my project? Oct 21 16:47:58 in studio 0.3 Oct 21 16:48:04 i tried from project structure Oct 21 16:49:38 Baluse: this is from edit confuration Oct 21 16:49:50 whcih Oct 21 16:50:11 Baluse: what do you mean which Oct 21 16:50:26 which what ? Oct 21 16:50:35 i mean i want to add retrofit.jar to my project in android studio Oct 21 16:50:56 oh. why not pull it from Maven central? Oct 21 16:51:11 Baluse: oh, i am tring to get help with an emulator not working Oct 21 16:51:33 how Oct 21 16:51:44 list it in the build.gradle's dependencies section Oct 21 16:51:45 heh whoever Oct 21 16:51:56 i get two Oct 21 16:52:00 build.gradle files Oct 21 16:58:04 lol it is hard to import a simple jar :P Oct 21 16:58:30 the worst is that they are going to tell what have you been doing all this time /lazy Oct 21 17:16:43 Still having issues creating a project on Android Studio 0.3... Oct 21 17:34:35 Can somebody explain the cause of ParseException 101: "object not found for update" when .saveInBackground'ing a ParseObject "Activity" with NO objectId set on it? Oct 21 17:34:43 Nothing that I have googled helps. Oct 21 17:39:43 explodes: put the relevant source and stack trace on pastebin.com and then send us the link(s) Oct 21 17:44:13 hello peeps Oct 21 17:44:17 IntentService Oct 21 17:44:29 need some guidance Oct 21 17:45:29 lemonx: just ask your question Oct 21 17:45:30 ok what i want to know can i use an intentService to handle my network traffic for my chat app, how does start_sticky work with IntentService and will the service start itself? Oct 21 17:45:39 yeah sry evanc was still typing the question Oct 21 17:46:08 well not restart itself but the OS will start it when it stops it Oct 21 17:47:12 oh and is an IntentService coupled with the app as in when the app dies does the intentservice also die? do i have to explicitly start the IntentService in its own process? Oct 21 17:49:12 evanc: http://pastie.org/8419215 There is no stacktrace because the error is handled gracefully, but it should not be giving an error! (at line 8, error is ParseException with code 101, "object not found for update") Oct 21 17:51:10 also what happens when you call startService after the service has allready been started? Oct 21 17:51:30 lemonx: your started IntentService will get a second intent after processing the first Oct 21 17:52:04 evanc when does the service stop? Oct 21 17:52:12 do i have to explicitly call stopService? Oct 21 17:52:14 lemonx: when it's done processing the intent Oct 21 17:52:16 cause i dont want it to stop Oct 21 17:52:23 no, IntentService never calls stopService Oct 21 17:52:25 ok let me explain what i want Oct 21 17:52:35 I suspect you don't want IntentService Oct 21 17:52:48 i want a service that runs in the backgroup decoupled from my app that does network traffic Oct 21 17:52:56 similar to what whatsapp does Oct 21 17:53:27 Don't mix up app and activity.. But yeah, you don't want to use IntentService.. Just use Service Oct 21 17:53:31 I have no idea what whatsapp does, but fire up a service in a separate process and use one of the oodles of networking libraries like volley Oct 21 17:53:50 i dont want to use GCM just cause i cant .. there is no way for me to know where or not my clients are connected so i cant use GCM Oct 21 17:53:57 evanc i have networking done allready Oct 21 17:54:07 and i allready have a service binding and unbinding from it Oct 21 17:54:16 I added retrofit but i am getting exception Oct 21 17:54:22 but i dont want to bind or unbind it cause that restarts the app on rotate Oct 21 17:54:25 Baluse: that provides no information Oct 21 17:54:36 lemonx: er, what? Oct 21 17:54:49 soz ... service Oct 21 17:54:56 restarts the service on rotate Oct 21 17:55:05 also i dont want the service to stop when the activity does Oct 21 17:55:25 if that's happening, you're doing something very wrong Oct 21 17:55:27 its should run in the backgroup to supply me with my own "GCM" functionality Oct 21 17:55:28 https://gist.github.com/parhs/83e0afae32386f13c420 Oct 21 17:56:52 i am sure i am doing something wrong with my binding, but its just an interim solution till i get the service to stay alive and keep recieving my network traffic and update my db Oct 21 17:57:21 sry new to services only know how to use bind/unbind service :/ Oct 21 17:58:24 If you startService it wont stop until you stopService.. Unless you use IntentService, it calls stopService for you Oct 21 17:58:46 i could just start the Service with explicit startService but then it leaks the service when the activity stops and kills my service? Oct 21 17:59:29 ok cool SimonVT that is what i want :) but what happens if no stopService is called and the activity dies Oct 21 17:59:47 Nothing Oct 21 18:00:00 Service is still there Oct 21 18:00:06 Because you haven't called stopService Oct 21 18:00:10 so it wont leak it ? or does it just leak it when it was bound Oct 21 18:00:19 what is "it"? Oct 21 18:00:44 when the activity finishes evanc Oct 21 18:00:58 the last activity Oct 21 18:01:33 that doesn't clear things up. "it won't leak it? or does it just leak it when it was bound" <-- I have no clue what you are trying to say here Oct 21 18:02:15 reason i am asking this is cause i tried something else earlier bind() but no unbind() then as the activity finnished i get an error in adb telling me that MyActivity as leaked a service: Myservice Oct 21 18:02:51 has leaked** not as Oct 21 18:04:03 i am really sorry if my questions are extremely stupid Oct 21 18:04:58 SimonVT, and how do i tell the system to not stop my service or if it does stop it to restart it as soon as resources to run it is available? Oct 21 18:08:39 lemonx: http://developer.android.com/reference/android/app/Service.html#ServiceLifecycle Oct 21 18:09:52 perfect thnx ashooby been seemingly reading the wrong stuff on the reference :) Oct 21 18:16:57 ok ashooby i have read this section Oct 21 18:17:00 how ever Oct 21 18:17:15 there is still something that is fairly unclear or maybe i am not reading it correctly Oct 21 18:17:55 A service can be both started and have connections bound to it. In such a case, the system will keep the service running as long as either it is started or there are one or more connections to it with the Context.BIND_AUTO_CREATE flag. Oct 21 18:18:21 does this mean that if you start it you can bind and unbind from it but if not stopping it, it will continue running? Oct 21 18:19:09 if you call Context.startService() you will be able to bind and unbind freely Oct 21 18:19:28 it will *not* be stopped until you call Context.stopService() or the service stops itself Oct 21 18:19:47 besides the system freeing up resources and all that ofc Oct 21 18:20:52 awesome Oct 21 18:21:14 and returning START_STICKY will then tell the system to start it again if resources are available? Oct 21 18:21:27 this is awesome news :) Oct 21 18:21:41 not news for you maybe but great news for me Oct 21 18:22:35 In the newInstance function for a fragment, what's to stop me from setting private variables such as frag.someObj = new SomeObj() Oct 21 18:25:03 Nothing.. They'll just be gone after e.g. an orientation change Oct 21 18:27:39 SimonVT: Okay so what's the best way to coordinate setting an object private variable for a fragment so that it will persist, since I can't store objects in Bundle Oct 21 18:28:32 Put some data in a bundle that tells the fragment where to get the objects Oct 21 18:28:47 ok i added with maven from android studio Oct 21 18:28:48 compile 'com.squareup.okhttp:okhttp:1.2.1@jar' Oct 21 18:29:00 works but com.squareup.okhttp.internal.Util missing Oct 21 18:29:13 i have no clue how to get the correct jar Oct 21 18:29:16 you don't need "@jar" Oct 21 18:29:44 its added automaticaly Oct 21 18:30:30 i wonder if that bypasses the transitive dependency resolution Oct 21 18:30:31 JakeWharton, win++ thnx alot for picassa image chahcing Oct 21 18:30:59 really like it :) Oct 21 18:31:25 just want to know is there a way to force a refresh? on the cache? Oct 21 18:33:21 any idea :) ? Oct 21 18:33:50 clear cache? Oct 21 18:34:20 You already got one idea, don't use @jar Oct 21 18:34:59 dont want to clean the entire cache birbeck :) Oct 21 18:36:08 but its not a big deal at the moment Oct 21 18:42:31 boot into a recovery, then wipe cache. where does the issue lie? Oct 21 18:43:29 lemonx: ive never used picasso, but looking at the api, i dont see any way to evict a single item from the cache, perhaps set the item to null? Oct 21 18:43:48 k will try that Oct 21 18:43:49 thnx Oct 21 18:46:40 Is there a way to avoid losing focus when using notifyDataSetChanged() in my custom adapter? Oct 21 18:47:05 why are you trying to remove an item from the cache? Oct 21 18:48:52 ok i cleaned jar Oct 21 18:49:58 JakeWharton, i am caching Avatars but the url that describes the avatar doesn't change Oct 21 18:50:09 but i do know when its changed Oct 21 18:52:20 can you set a query parameter on the image resource url? Oct 21 18:53:13 hmm i could add some dummy data to it i guess Oct 21 18:53:30 that would change it and refresh it Oct 21 18:53:32 hmm Oct 21 18:53:38 thnx for the idea birbeck Oct 21 18:53:57 just make sure you are retaining whatever dummy data you append Oct 21 18:55:48 yeah that is easy Oct 21 18:55:54 lemonx: oh, you just need to wipe cache directory for a single app? open that app's "App Info" page in the Setting app and you will have a choice to clear all data it has, clear the cache for that app and some other stuff. Oct 21 18:55:58 i mean i understand that :) Oct 21 18:56:12 sigv not what i want but thnx Oct 21 18:56:21 oh, okay. :) Oct 21 19:00:05 Anyone here have precompiled headers working? Ideally for r9? Oct 21 19:00:39 I've spent a lot of time looking into it, and it seems the closest some people have come is having it "working", but, for some reason, not providing any benefit. Oct 21 19:01:27 I'm willing to spend some time hacking away at it to write a patch; standing on the shoulders of what others have done will definitely help that process. Oct 21 19:08:24 why @jar causes problems? Oct 21 19:09:29 What kind of listener would I use if I want something to happen after an EditText is done being edited? I can't use a TextWatcher since that is called each time it changes. I have been trying to use an OnEditorActionListener but it seems wonky as not all phones use IME types and stuff. Oct 21 19:09:39 Jake's guess was that adding '@jar' stops the dependencies of okhttp from being downloaded. Oct 21 19:09:49 Namely, okhttp-protocols (iirc). Oct 21 19:09:53 right Oct 21 19:10:04 if you add the extension it can skip downloading the pom Oct 21 19:10:54 hey, what is the best way to implement a secondary menu for an ActionProvider in the ActionBar? Oct 21 19:13:13 I mean a submenu which opens after a specific MenuItem from the original submenu is selected and contains some further specification Oct 21 19:13:19 Moopz: what does "done" mean? loses focus? presses "enter"? stops typing? Oct 21 19:15:22 evanc: Well that's my problem really. How does one define done? I had a TextWatcher and it works somewhat. The problem is, it has to call onNotifyDataSetChanged() each time, which makes the EditText lose focus. Oct 21 19:20:17 So I'm not sure how to go about it. It would suck having to manually refocus the edittext each time you had to change something Oct 21 19:28:14 found an answer.. just set another ActionProvider to the specific ListItem in the submenu of the first ActionProvider.. Oct 21 19:31:36 Hmm. Trying to do a setOnFocusChangeListener doesn't seem to help me either. As I call notifyDataSetChanged() within the !hasFocus check, it never receives focus in the first place. Any suggestions? Oct 21 19:42:27 Moopz: why does notifyDataSetChanged() make your EditText lose focus? that seems like a bigger issue Oct 21 19:44:17 Well it redraws the entire listview as far as I'm aware? Oct 21 19:44:32 I'm basically struggling to do a HelloWorld in Eclipse - all I did was to create a new Android app, press next next finish, and it still doesn't work. It says R should be resolved to a variable. Pressing ctrl+shift+o imports android.R, which stackoverflow advices me to delete and clean the project. Still doesn't work, but it seems to be a common bug in Eclipse. Any ideas? Oct 21 19:44:49 anyone ever experience SIGSEGV's when doing RenderScript stuff? Oct 21 19:45:21 specifically just Intrinsic stuff (so none of my own trickery is to blame) Oct 21 19:49:08 Moopz: oh and your edittext is in the listview? Oct 21 19:49:54 evanc: Yeah. Each item in my listview has 2 edittexts Oct 21 19:50:04 lostkauze try android studio Oct 21 19:50:50 I defined a contentprovider to share uri's of assets. Now I'm using a ClipboardManager.setPrimaryClip(ClipData.newUri... Oct 21 19:51:00 How do I use the ContentProvider here? Oct 21 19:51:13 I assume I use contentProvider.getServiceProvider? Oct 21 19:51:20 Do I start contentprovider with an intent? Oct 21 19:57:11 use a content resolver: http://developer.android.com/reference/android/content/ContentResolver.html Oct 21 20:10:08 what should I google if I want to use a bitmap of a gradient as a mask to create transparency in another bitmap, the alpha of said transparency being determined by the color of the gradient (like black = very transparent, white = opaque) Oct 21 20:11:24 Alright so I sort of fixed my problem. I simply saved which row and which edittext had focus and then I set it each time getView is called in my adapter. However, this is the strange part, it only seems to work when I delete something from the edittext. If I add something to the edittext, it still loses focus. Oct 21 20:11:27 It's weird. Oct 21 20:11:44 hey. I want to make a board game, like tic-tac-toe. what would be the best approach for the layout? should I manually draw lines (2 by 2, which makes 3 columns and rows) or should I use some objects (3x3) as cells? Oct 21 20:12:34 later I want to catch clicks on those cells. I could just use touch event and calculate, where the click was Oct 21 20:12:46 or I could use objects for cells and then use onclick or something like that Oct 21 20:14:54 tnzr, bitmap alpha mask android Oct 21 20:41:27 tnzr, an alpha mask sounds like what you're describing... Oct 21 20:45:31 seeing lots of "internal errors" with this version of AS "Assertion failed: A window without a title should not be used for showing MacMessages" Oct 21 20:45:37 pfn: ok Oct 21 20:46:05 thanks Oct 21 20:46:18 so far the main issues seem to be :generateDebugSources hangs, code folding internal error ruins the editor until restart Oct 21 20:46:23 and leslie! Oct 21 20:46:45 sup Oct 21 20:51:28 I get internal errors when creating projects, g00s Oct 21 20:51:41 which is better than what it was doing before, I guess, which was just crashing Oct 21 20:52:02 * monsti just got a nexus 7 (2013) Oct 21 20:52:12 that little thing is quite impressive! Oct 21 20:52:33 leslie try { … } catch (Exception e) { show internal error() } :D Oct 21 20:52:34 monsti congrats! Oct 21 20:52:42 im getting mine next month Oct 21 20:52:44 xD Oct 21 20:53:06 nice size, weight, speed, display Oct 21 20:53:16 it's fun to read PDFs Oct 21 20:53:21 if i could get the 10 i would, but 7 is a great prize Oct 21 20:53:36 has the 10 been updated yet? Oct 21 20:53:47 oh good question Oct 21 20:53:51 better wait on it Oct 21 20:53:53 no it hasnt Oct 21 20:54:00 Hello.I have created a java library project in Android Studio. Oct 21 20:54:09 How can i use it from other module ? Oct 21 20:54:12 within same project Oct 21 20:54:25 i tried adding it as dependency but doesnt work Oct 21 20:54:35 Hey guys, I need to pass a style to a custom view like this: and pass that to the TextViews I use internally. How should I do that? I don't know what to search for :/ Oct 21 20:55:06 Baluse, should work. what code did you use? Oct 21 20:55:21 ok just bought 7" galaxy tab for 200 bux. hope this works Oct 21 20:55:28 now i have to play GTA V Oct 21 20:56:47 Nice price JimmyCarter Oct 21 20:56:54 how much ram in it? Oct 21 20:58:07 not sure how much ram Oct 21 21:02:58 if it's the Galaxy Tab 3, 1.5Gb Oct 21 21:03:19 yup it is, thanks leslie Oct 21 21:03:31 I want to get a Galaxy S 4 when I get a job. Oct 21 21:04:03 leslie it doesnt Oct 21 21:04:10 no? Oct 21 21:04:11 ah yeah i think those have arduino gpus Oct 21 21:04:18 the galaxy S 4, same as nexus7 Oct 21 21:04:41 Android studio recognised it after adding compile project(':DataModel') Oct 21 21:04:44 at gradle Oct 21 21:04:50 i just bought the most reasonably priced tablet at walmart Oct 21 21:04:56 the test is what fps my game will get on it Oct 21 21:04:59 but when i run it at smartphone i get class not found Oct 21 21:05:20 try a clean build, Baluse Oct 21 21:05:50 if its less than 5 then i have a galaxy tab for sale :/ Oct 21 21:05:55 how Oct 21 21:06:09 gradle clean, gradle assemble, Baluse Oct 21 21:06:15 i use android ide Oct 21 21:06:52 try restarting the ide then. if that doesn't work, build, rebuild Oct 21 21:07:40 maybe jar isnt there Oct 21 21:10:36 still gettting error Oct 21 21:11:13 maybe i havent created correctly Oct 21 21:11:20 gradle Oct 21 21:11:22 files Oct 21 21:18:02 Actually, i joined g+ over 15 mins ago!!! now let me invite myself Oct 21 21:18:23 sup jimmy Oct 21 21:18:27 google sucks at realtime spying on me Oct 21 21:18:58 hey nubish Oct 21 21:19:25 ehh… I have angle to north… no I have to combine it with ture north for compass look, I dig throu stackover flow and I reach wall Oct 21 21:20:38 I use magnetic type of listener Oct 21 21:23:53 I base on my iOS code where northAngle- relative angle (device angle) to magnetic north…. how I can get relative angle of magnetic north? Oct 21 21:25:20 FINALLY! ContextThemeWrapper fixes my problem (for the records). That one was hard to find. Oct 21 21:26:25 :( Oct 21 21:26:29 i cant create library Oct 21 21:27:02 it takes 6 days to create library, followed by one day of rest. Oct 21 21:27:41 then you pronounce loudly, "lo and behold, i have created library and it shall be glorious!" Oct 21 21:28:39 lol Oct 21 21:29:39 when deployed it says not present Oct 21 21:35:20 i'll post github example Oct 21 21:50:10 Baluse does the library project correctly apply plugin 'android-plugin'? Oct 21 21:50:22 er, 'android-library' Oct 21 21:56:37 sweet 30 fps totally playable little buggy Oct 21 22:04:47 hmmm..is it normal to have: dependencies { Oct 21 22:04:48 classpath 'com.android.tools.build:gradle:0.6.+' Oct 21 22:04:48 } in my build.gradle while I'm using gradle 1.8 ? :/ Oct 21 22:05:31 leslie its java Oct 21 22:05:45 i want simple java classes Oct 21 22:05:55 ah. that's weird then. but I've had the same problem Oct 21 22:06:03 and what did you do ? Oct 21 22:06:09 csst0111: 'com.android.tools.build:gradle is the Android gradle plugin, it's different than the actual gradle version Oct 21 22:07:03 i dont know why it isnt included Oct 21 22:07:31 so I need "somehow" to update the plugin dbro ? Oct 21 22:08:01 no this is 1.8 Oct 21 22:08:37 you're fine csst0111, that build.gradle file simply specifies you have Gradle version 1.8, and you're requesting the Android plugin for Gradle with version .6 or greater be used Oct 21 22:09:02 ok, thank you Oct 21 22:09:40 I cleaned the project from the commandline ("./gradlew clean") updated the gradle wrapper to gradle 1.8 and the android plugin to 1.6+, and sacrificed a goat, Baluse. ok, not the last one, but I may as well have, because I don't have a clue what fixed it Oct 21 22:10:14 i will try the clean fix Oct 21 22:10:41 BUILD SUCCESSFUL Oct 21 22:10:59 what did it, Baluse ? Oct 21 22:11:02 how can i know which wrapper i have? Oct 21 22:11:07 dont know i am going to run it Oct 21 22:11:11 and sacrifise a goat Oct 21 22:11:16 look in ./gradle/gradle.properties or something Oct 21 22:11:32 its a pain in the ass :) Oct 21 22:12:08 lol leslie that seems to fix it Oct 21 22:12:16 ahh ok Oct 21 22:12:23 gay thing Oct 21 22:12:30 i will try at my original project now Oct 21 22:14:05 what does this command do ? Oct 21 22:14:11 so there waas something buggy ? Oct 21 22:14:54 hm it doesnt work at other project Oct 21 22:16:41 gradlew clean you mean? it removes generated files Oct 21 22:16:51 yes but didnt work at other project Oct 21 22:17:02 hmm Oct 21 22:18:07 it seems retarted:P Oct 21 22:18:14 waste hours to import a library Oct 21 22:18:29 and they are going to consider me lazy Oct 21 22:18:42 just quit doing it wrong :p Oct 21 22:18:47 heh Oct 21 22:18:54 dont know how Oct 21 22:19:30 did you upload a project with the problem, Baluse ? Oct 21 22:21:14 nop Oct 21 22:21:27 i am goign to Oct 21 22:21:30 but cant githuv Oct 21 22:21:59 i fixed it :) Oct 21 22:22:08 deleted .gradle folder Oct 21 22:22:55 ah ok Oct 21 22:23:43 what could this be ? Oct 21 22:23:47 bug? Oct 21 22:24:01 it's possible Oct 21 22:25:25 gradlew --recompile-scripts claims to do the same Oct 21 22:25:41 should i file the bug? Oct 21 22:31:42 leslie died Oct 21 22:32:02 * leslie haunts Baluse Oct 21 22:33:21 heh Oct 21 22:34:33 i run visual studio eclipse android studio photoshop illustrator teamviewer chrome concurrently and still have ram free:S Oct 21 22:34:48 and some server programs Oct 21 22:43:08 what's it called again that navigation thing where you can slide from left to right and get a list that's 'hidden' on the left side Oct 21 22:43:24 and is it in the compat lib Oct 21 22:44:07 navigation drawer and yes Oct 21 22:44:19 ah yes thanks Oct 21 22:51:50 i have 2 days left Oct 21 22:52:22 fucking awsome! Oct 21 22:52:25 I did it Oct 21 22:52:28 mu hahhahaa Oct 21 22:52:41 what Oct 21 22:52:59 compass :D or rather safe back home Oct 21 22:53:09 lol Oct 21 22:53:37 rotate imageview and get correct magnetic north is pain Oct 21 22:54:05 ehh.. but I start knowing android since yesterday Oct 21 22:54:47 for now I develope on iOS Oct 21 22:55:01 hmm… now I have to do the same on WP:D Oct 21 22:55:24 btw you can launch Google Maps from your activity Oct 21 22:55:25 ? Oct 21 22:55:31 lol Oct 21 22:55:41 probably an intenet Oct 21 22:55:46 intent* Oct 21 22:55:57 do you find IOS dev easier ? Oct 21 22:56:24 i have seen in my company the IOS dev macbook Oct 21 22:56:41 it looked amazing .. all screens in one ,navigation etc Oct 21 22:56:48 Baluse hard to say, 1,5 elier I will say iOS dev is hard Oct 21 22:57:05 but seems it has better IDE Oct 21 22:57:05 yep Baluse unity in osx and ios is amazing Oct 21 22:57:47 I mean unity in iOS apps and osx apps not iOS and OSx Oct 21 23:00:08 Baluse but anwsering to your question.. yea atm develop to iOS is easier to me but i do it for almost 1,5 year. Before that i was starting develop to WP 7 thank god my company gave me macbook Oct 21 23:02:22 but atm it seams to that I will be iOS/Android/WP developer :) properly to order I will spend my time with those SDK Oct 21 23:02:49 buy android may swap with wp Oct 21 23:02:52 will see :) Oct 21 23:03:38 that comment scares me .... iOS, android AND wp ? Oct 21 23:05:44 bankai_ what scares you particular? Oct 21 23:06:20 three platforms or order? Oct 21 23:07:08 hi all is there a way i can put my emulator in ladscape instead of portrate Oct 21 23:07:24 whoever ctrl + F12 I think Oct 21 23:07:44 it scares me that people say they can do all three. I have seen the shit mess iOS developers make when they "port" iOS apps to Android and it's so bad they needn't bother Oct 21 23:08:11 not saying they are all like that, i'm sure there's people that can do both very well, but i've seen far too many shit ports around that have cemented that opinion Oct 21 23:09:17 i don't understand how an iOS developer can follow iOS guidelines for iOS and then not follow android guidelines when developing for android Oct 21 23:09:33 leslie: tex, i was looking at the api and am tring to find what views there are Oct 21 23:09:35 bankai_ I'm as far as I can from port in method "cmd+c cmd+v" Oct 21 23:09:50 but cant seem to find a list of views in api Oct 21 23:11:35 all platforms have their own things, if you know them and respect then I can't find any "no" for develop for two/three other platforms Oct 21 23:13:19 seand one situation is when someone don't follow guidelines at all and another if someone don't know guidelines for iOS/And Oct 21 23:14:02 My opinion is, if you want develop on some platform you have to use it. Oct 21 23:14:21 Or at least have some idea about it. Oct 21 23:14:37 Dudi: i don't think that's always the problem. sometimes it's managerial and they want it to look 'exactly the same' on all platforms, which is unrealistic, short sighted and stupid Oct 21 23:15:03 the guidelines for both platforms are easily accessible and well documented, so there's no excuse Oct 21 23:15:16 Sit and write because I have idea and "My design will rock the world" Oct 21 23:15:40 have you seen this http://news247.gr/eidiseis/koinonia/eglima/article2465015.ece/BINARY/w660/roma.jpg Oct 21 23:16:50 I could probably do ios and wp, but I got enough on my plate already for now Oct 21 23:17:20 I'll just wait for them to die and go away ;) Oct 21 23:17:24 seand I don't want excuse any one. If someone throu away guideline it beacuse he is an ignorant Oct 21 23:17:36 yea Oct 21 23:18:32 all ther platforms are diffrent because of some reasons… let keep it that way Oct 21 23:19:18 Dudi: how can you handle all that work ? you might as well write your own phonegap style thing Oct 21 23:20:54 shmooz I don't know I hope that never comes to my mind. Frameworks for frameworks are not the best ideas Oct 21 23:22:48 Dudi: what app are you working on ? a compass ? Oct 21 23:23:27 ok it's 1:21 am in Poland… I have to take some rest if I want look at some improvements and wp Oct 21 23:23:55 shmooz compas is just a part of bigger app Oct 21 23:23:55 lol, the cat got his tongue Oct 21 23:24:04 oh ok Oct 21 23:24:22 but I don't know details Oct 21 23:24:30 maps that spin when you spin on the spot Oct 21 23:25:08 hmm… nice idea in iOS i just open Maps for two points and Map handle all navigation Oct 21 23:25:27 drawing route etc Oct 21 23:27:03 shmooz yea sometimes I write some not exactly perfect sentence please correct me if then :) Oct 21 23:27:21 with out "if" Oct 21 23:27:32 damn.. sleep Oct 21 23:28:07 ok Dudi congrats and sweet dreams Oct 21 23:28:19 ok thanks for your time and will see you tomorrow Oct 21 23:30:30 Baluse, hey never expected a link from news247.gr @ android-dev channel :P Oct 21 23:42:39 lol Oct 21 23:43:08 csst0111 Oct 21 23:43:53 Baluse :) Oct 21 23:45:00 :) Oct 21 23:46:25 moo Oct 21 23:46:52 lol Oct 21 23:47:08 mugshot http://www.newsbomb.gr/images/news/2013/10/21/21102013anak.JPG Oct 21 23:48:25 of? Oct 21 23:50:17 the dude before Oct 21 23:50:31 before what Oct 21 23:52:18 http://edition.cnn.com/2013/10/21/europe/gallery/roma-settlement-farsala/index.html Oct 21 23:52:21 this jug6ernaut Oct 21 23:52:55 http://edition.cnn.com/2013/10/21/world/europe/greece-mystery-girl/index.html?hpt=hp_c2 Oct 21 23:53:13 :| Oct 21 23:53:28 video source Oct 21 23:54:54 is the latest AS update bad? i read things about how it messed up gradle . Oct 21 23:55:14 ive seen such complaints also Oct 21 23:55:16 what is AS ? android studio ? Oct 21 23:55:19 yes Oct 21 23:55:23 yep i had tons of problem too :) Oct 21 23:55:30 i though that i am retarted Oct 21 23:55:44 even I am this isnt relevant Oct 21 23:55:58 * jug6ernaut uses intellij Oct 21 23:56:01 I couldnt have project dependencies Oct 21 23:56:20 the solution was to delete .grandle folder (cache) Oct 21 23:57:03 i too occasionally delete my grandle folder. Oct 21 23:57:21 that sucks Oct 21 23:57:34 everything else at ide seems to work fine though Oct 21 23:57:44 some glitches Oct 22 00:18:26 Is there any easy way to animate an expand list view? when the user clicks on a group? Oct 22 00:19:34 gavilan2: what is ur min sdk Oct 22 00:19:49 7 Oct 22 00:19:54 what SDK would I need? Oct 22 00:20:03 thats fine Oct 22 00:20:24 so, how do I do it? Oct 22 00:20:30 1 sec Oct 22 00:21:17 thanks! Oct 22 00:23:47 Okay well Oct 22 00:23:55 I can't explain it better than these articles Oct 22 00:23:56 http://blog.xamarin.com/mfa-tricks-2-2-fingers-expandable-layout/ Oct 22 00:24:11 http://theopentutorials.com/tutorials/android/listview/android-expandable-list-view-example/ Oct 22 00:42:19 intellij seems so nice Oct 22 00:44:11 the rooskies are taking over! Oct 22 00:51:57 how do you trigger a sync on a syncadapter for testing? Oct 22 01:04:32 jaynewstrom: manually you can just check/uncheck the sync button under the account Oct 22 01:04:53 I'm not using accounts. It's just syncing to my server. Oct 22 01:05:46 how are you using a syncadapter without an account? Oct 22 01:06:31 you can use it without an account. it's documented here http://developer.android.com/training/sync-adapters/creating-sync-adapter.html Oct 22 01:07:23 unless i'm reading it wrong. Oct 22 01:07:28 I'm not so sure about that, where exactly does it describe you don't need an account? Oct 22 01:07:30 Add the data transfer code to onPerformSync() Oct 22 01:07:39 that is the section header Oct 22 01:07:49 then under account Oct 22 01:08:00 An Account object associated with the event that triggered the sync adapter. If your server doesn't use accounts, you don't need to use the information in this object. Oct 22 01:08:02 yeah, your server doesn't necessarily care about the account but your adapter is still associated with one Oct 22 01:08:26 look at the "Add sync adapter meta data file" section Oct 22 01:08:39 android:accountType describes the account you are using and is afaik required Oct 22 01:09:42 hmmm, well. maybe this isn't the best way to do it then. Oct 22 01:09:57 one would think the system would be able to trigger stuff like this. Oct 22 01:10:10 it's basically an offline application that syncs the data when it gets back online Oct 22 01:11:22 well, you can provide your own account that is a singleton for your app Oct 22 01:11:39 Anybody know where I can get a Droid Maxx USB driver for Win8.1/64 so I can use ADB? I'd prefer not to install a bunch of bloatware to get the basic USB driver. Oct 22 01:12:17 mmarklar: doesn't that seem like overkill? Oct 22 01:12:29 jaynewstrom: maybe? :) Oct 22 01:12:34 I don't really know what you are trying to do Oct 22 01:12:54 Forget that, I found them. Oct 22 01:13:16 it's a dead simple app. Just some stuff to put on my github. Oct 22 01:13:26 the user interface stores something into the database. Oct 22 01:13:29 then yes, probably overkill Oct 22 01:13:38 when the device is back online, it syncs the data to a server Oct 22 01:14:02 is there a good triggering mechanism to use then? Timer in a service? or a better approach? Oct 22 01:15:00 if you really want to do it every time there is a network change then I'd just listen to the intents Oct 22 01:16:02 .. How can I have an ArrayList that, when I inspect it while debugging, has size=6, but only 4 elements? Oct 22 01:16:07 hmmm, damn system needs to have a "background data sync" trigger Oct 22 01:16:32 otiose: does .size() return 6, and .get(5) not work? Oct 22 01:16:36 Then, when iterating through it for(Thing thing : list) {} my 'thing' is null Oct 22 01:16:58 otiose: post some code? i have never seen anything like that Oct 22 01:17:27 probably because you are storing null in the array list? Oct 22 01:17:37 its a valid value Oct 22 01:17:59 ooooh you can do that with arraylists..... Oct 22 01:18:06 i'll bet you thats what it is, let me check Oct 22 01:19:51 welp, that is indeed the problem.. i was combining 2 arrays, and one of them coming in had the end half all null Oct 22 01:20:04 well thanks, thats a good thing to know Oct 22 01:20:12 np Oct 22 01:23:59 hi guys Oct 22 01:24:06 oh oh Oct 22 01:24:20 g00s, howdy? Oct 22 01:24:23 long time no see man Oct 22 01:24:29 :) Oct 22 01:24:48 g00s, what is the best dev environment for android Oct 22 01:24:51 i forgot man Oct 22 01:24:54 it's been a while. Oct 22 01:25:11 mmarklar: http://stackoverflow.com/questions/17890885/android-background-jobs-for-synchronization-with-a-web-service seems to say you don't need an account Oct 22 01:25:17 phong_ the one you like :) Oct 22 01:25:29 good one! Oct 22 01:25:30 you got me Oct 22 01:26:21 jaynewstrom: afaik you have to have a content provider and an account to make it work. Whether they actually do anything is another story, you can definitely implement empty ones Oct 22 01:26:55 hmmmm, it seems like the most efficient way to do it, SyncAdapter that is. Oct 22 01:27:50 its good once you have it all setup Oct 22 01:28:03 I'm not a huge fan of how accounts work in general in android Oct 22 01:28:15 the G+ stuff in the play services library is nice if you can use that Oct 22 01:28:29 I have the sync code written. Just need to trigger it :p Oct 22 01:30:25 i use retrofit and when app is warm get some performance penalty Oct 22 01:30:55 however android erases memory Oct 22 01:59:18 Say you want to have a view that you define in java, but want to have multiple xml implementations of its layout. It has 2 textfields, ie R.id.text1, R.id.text2; You don't want to require every single xml implementation to have both of them. Oct 22 01:59:46 It there a good way to do this without doing if(mTextView2 != null) mTextView2.setText(blah); every time? Oct 22 02:02:25 I guess you could have a method like setText2Text(String text) {} but thats also annoying.... Oct 22 02:32:59 hi all how to set the focus to a edit text? thanks; Oct 22 02:41:18 edittext1.requestFocus(); is my friend!!!! Oct 22 02:48:15 So, I'm just working on a very basic app to get practice in general and when I try to do add = (Button) View.findViewById(R.id.bAdd); it cannot find bAdd, my xml has a button with android:id="@+id/bAdd" Oct 22 02:49:36 Should I be using another method to attach the button var add to the button bAdd? Oct 22 02:50:49 that looks correct to me, not sure why it would fail to find it Oct 22 02:50:59 do you have other ids that are under R.id? Oct 22 02:51:06 wich is the cotrol for display some values (a listbox, or dropdown) Oct 22 02:52:34 seand: http://imgur.com/ga35qVW Oct 22 02:53:45 All applications under one Google Play account need to use the same keystore, right? Oct 22 02:54:12 combatwombat: can you paste your xml and also the full onCreate or onCreateView java code? Oct 22 02:54:39 Anyone know what this tab thing is called, that appears over every app, and its like a tab that opens up and has shortcuts? Oct 22 02:54:41 thenovelist: i thought it was just all version of an application have to use the same keystore Oct 22 02:54:48 hn Oct 22 02:54:50 hm Oct 22 02:55:34 comes up and goes away by holding the back button? Oct 22 02:56:25 otiose: screenshot? Oct 22 02:56:26 do android devices still use bitmaps? Oct 22 02:57:16 'shortcut tab' on google found me what i was looking for Oct 22 02:57:21 but i dont know if thats the official name or not Oct 22 02:57:47 i have no idea what that is **** ENDING LOGGING AT Tue Oct 22 02:59:58 2013