**** BEGIN LOGGING AT Wed May 14 03:00:00 2014 May 14 03:06:29 hi May 14 03:07:08 i got a newbie question: at 14dp, how many characters could be fitted within 200 pixels horizontally? May 14 03:22:03 call get text width api May 14 03:27:10 hi, im trying to debug an application with ndk-gdb and it seems that it never attaches (just a "waiting for debugger" window in the emulator) May 14 03:27:21 doing 'c' in gdb just sits there May 14 03:27:37 in logcat i see: May 14 03:27:37 I/dalvikvm( 2080): Debugger is active May 14 03:27:38 D/dalvikvm( 2080): Debugger has detached; object registry had 3527 entries May 14 03:27:47 with no delay May 14 03:27:56 did your application even start? May 14 03:28:09 how can i tell? May 14 03:28:30 theres messages about the launch timeout expiring May 14 03:28:33 (in logcat) May 14 03:28:38 so maybe not... May 14 03:30:06 this shows up before that message: http://paste.fedoraproject.org/101559/38189140 May 14 03:30:14 bankai_au think its worth providing mdpi assets ? May 14 03:31:20 hummm, i'd say no to ldpi, but uneasy saying no to mdpi... May 14 03:31:33 are there stats anywhere? May 14 03:31:33 is ndk-gdb the wrong thing to use for projects just using ndk for libraries? May 14 03:32:23 what is the best solution to send received broadcasts to a service? The service has an open websocket that I'm forwarding the received broadcast on May 14 03:32:23 yeah , 21.1% May 14 03:32:43 mathstuf: from memory, you need to attach the debugger before making any calls via jni, or something like that May 14 03:33:19 it was a while ago, but I remember that my activity originally automatically kicked off a JNI call in its onCreate(), and instead I rigged the back button to kick off the call there May 14 03:33:35 cos otherwise the debugger didn't attach May 14 03:33:41 barbs: ah, ill try that May 14 03:33:42 I might've been doing things the wrong way though :) May 14 03:34:54 hmm..SDLActivity hooks through surfaceChanged May 14 03:35:55 and theres other logic there...sleep it is May 14 03:36:22 g00s: i like to work on the 80% with both iOS and Android May 14 03:36:30 have to draw the line somewhere May 14 03:37:43 shit, i see sensors.qcom in my batter report ... May 14 03:37:51 sure enough May 14 03:38:01 its fucking neverending May 14 03:38:19 always something wrong, with whatever, now google location services again May 14 03:38:25 that pos May 14 03:38:56 https://code.google.com/p/android/issues/detail?id=67189 May 14 03:45:13 barbs: no luck...the titlebar still just disappears before gdb can do anything May 14 03:46:13 damn May 14 03:46:44 oh! I remember as part of the gdb command I had to specify an activity to start (I think) May 14 03:46:50 it is better though... May 14 03:47:04 it says its waiting, it attaches, then detaches right away May 14 03:47:24 im using ndk-gdb --start May 14 03:47:28 from the project tree May 14 03:47:38 maybe that's what I"m thinking of... May 14 03:51:17 bleh...setenforce 0 didnt help either (saw avc denials in the kernel logs related to gdbserver) May 14 03:57:55 hm cool if you like physical buttons http://www.gizmag.com/dimple-nfc-android-buttons/32042/ May 14 03:59:08 my boss showed me that the other day, pretty cool May 14 03:59:13 ooh May 14 04:08:30 ooh, I love physical buttons. took me ages to let go of my Sony Xperia Pro because I loved the hardware keyboard May 14 04:27:28 Grrr … okay, anyone alert and experienced with OpenGL ES? May 14 04:43:39 this AS template for NavigationDrawer --- in the fragment they say 'getActionBar().getThemedContext()' , why that instead of getActivity() :| May 14 04:43:58 g00s I wondered that myself May 14 04:49:52 Fun fact: I knew the answer to question a week ago … but now I can't remember it. lol May 14 05:02:33 KittenKoder so there is a good reason (whatever it is?) May 14 05:11:55 mattblang : use getActionBar().getThemedContext() to ensure May 14 05:11:55 // that the text color is always appropriate for the action bar May 14 05:11:55 // background rather than the activity background. May 14 05:12:15 hm, ok … but they are just inflating listview items :| May 14 05:28:53 hey all May 14 05:30:54 I have this style for my action bar https://gist.github.com/HashNuke/e613bd6f75eed2f14924 (I'm trying to change the background text to a specific color) But I end up with this http://cl.ly/image/0U0b1Y0A2932. Am I doing anything wrong? May 14 05:42:09 anyone here? May 14 05:42:27 Solupus: yes May 14 05:42:46 have you worked with html5/php/css? May 14 05:47:32 Solupus: yes May 14 05:47:38 Solupus: what are you looking for May 14 06:22:31 Any1 here knows how I can get the certificate of an android app that I am currently developing but which is to later be published to google play store? May 14 06:23:45 er... what? May 14 06:23:56 I read https://developers.google.com/maps/documentation/android/start#getting_the_google_maps_android_api_v2 but Im unclear of what to do to find the SHA1 Key May 14 06:24:22 they say there are 2 different keys, one for debugging, and one for release apps May 14 06:24:23 ah, so that's the missing context there :) May 14 06:24:32 huh? xD May 14 06:24:36 sorry if I was unclear May 14 06:25:33 and they also mentioned something about a "keytool" program to find out the SHA1 keys via Commandline it seems, but there has to be other way if Im working in eclipse I figure, right? May 14 06:26:05 why can't you use keytool? May 14 06:26:15 I could I guess May 14 06:26:26 just think Command line is pain in ze butt May 14 06:26:28 ;P May 14 06:26:49 rather prefer an easy navigation option within eclipses android app project May 14 06:26:59 a more "user-friendly" way of locating the key(s) May 14 06:27:18 But maybe there isnt one? May 14 06:27:48 the command line is very user friendly May 14 06:27:52 hm ok May 14 06:28:00 but then how do I know which key to look for? May 14 06:28:06 the release one, or the debugging May 14 06:28:07 you rtfm May 14 06:28:13 rtfm? May 14 06:28:16 well, are you building release or debug? May 14 06:28:25 it will become release when its finished May 14 06:28:30 but atm its in debugging phase May 14 06:29:12 which in my opinion makes it a bit confusing :/ May 14 06:30:44 found this on webpage article at google developers: "You use debug mode when you are developing and testing your application. You use release mode when you want to build a release version of your application that you can distribute directly to users or publish on an application marketplace such as Google Play." - does that mean then that I should use Debugging key whilst debugging and then May 14 06:30:44 change it when publishing finished product? May 14 06:32:24 nvm, think Ill go with release key since it will be released lateron, and also i rarely ever use debug mode on the app while developing May 14 06:35:58 Anyone knows how to send a test sms to my real device? I want to test my sms app on a real device. May 14 06:36:27 you can't May 14 06:36:47 I have this style for my action bar https://gist.github.com/HashNuke/e613bd6f75eed2f14924 (I'm trying to change the background text to a specific color) But I end up with this http://cl.ly/image/0U0b1Y0A2932. Am I doing anything wrong? May 14 06:37:05 Click66: get a friend to send one to you May 14 06:37:18 Leeds: is that the only way? May 14 06:37:34 seems like the obvious way May 14 06:38:04 Click66: you can also send an sms to self. it works. May 14 06:38:17 Click66, Beginning Android Application Development book on page 265 has example of how you send SMS from your Android App, maybe you can google to find PDF of book online without need of download May 14 06:38:31 Leeds: any clue about why that styling results in white backgrounds for some areas? May 14 06:38:34 Click66, this http://blog.dev001.net/post/14085892020/android-generate-incoming-sms-from-within-your-app May 14 06:38:53 Thanks May 14 06:38:53 oh, seems like I misinterpreted the question, sorry for that May 14 06:38:54 :) May 14 06:39:54 HashNuke: because you lied to your teachers when you were young May 14 06:40:07 Leeds: :( May 14 06:40:39 guys you can download Beginning Android Application Development in directly in your phone through this app https://play.google.com/store/apps/details?id=com.bigfootsoftwares.ebooks May 14 06:40:51 Leeds: sorry. Here's the style https://gist.github.com/HashNuke/e613bd6f75eed2f14924 and here's the result http://cl.ly/image/0U0b1Y0A2932 May 14 06:41:13 HashNuke: you lied to Jesus as well? May 14 06:41:28 Leeds: Why such questions? May 14 06:41:40 meadhikari: you're suggesting pirating coding books? May 14 06:42:08 HashNuke: why are you asking me such questions? May 14 06:42:32 Leeds, nope not really but in some case you can't have any choice like I can't buy those books in my country May 14 06:42:40 Leeds: sorry I thought you knew stuff. I remember seeing you in this channel long time ago too. May 14 06:43:03 meadhikari - ever heard of Amazon ? May 14 06:43:06 :P May 14 06:43:13 worldwide shipping (most of the time) May 14 06:43:30 HashNuke: it's really annoying when random people decide to bug me because I sometimes answer other people's questions May 14 06:43:33 Trekka12, ever heard of Nepal :) Amazon does not works here May 14 06:43:35 Otherwise ebooks could also be bought from the publishers I believe instead of downloading for free May 14 06:44:36 oh ok, meadhikari, but as long as uve got internet - im sure that youve got the possibility of purchasing ebooks, right? :) May 14 06:45:09 it's interesting that oreilly specifically *allow* resale of their ebooks May 14 06:45:20 ^^ May 14 06:46:48 actually i made https://play.google.com/store/apps/details?id=com.bigfootsoftwares.ebooks so just was throwing in xD i in no way want to promote piracy May 14 06:47:06 ah-ha May 14 06:47:17 ;P May 14 06:47:45 I wonder, if that app promotes piracy... how come google allows it to exist in play store? May 14 06:47:59 they are so strict for all other kinds of apps May 14 06:48:04 Trekka12: because not enough people have reported it for them to know/care May 14 06:48:07 Trekka12, you may not believe there is no way I can buy books from here, to register for playstore i had to give my auth details to a friend May 14 06:48:09 hm ok May 14 06:48:19 Oo May 14 06:48:22 guys don't report just today May 14 06:48:29 xD May 14 06:48:30 ok meadhikari, May 14 06:50:21 Hi, has anyone here used the app: "Screen Filter"? It can globally dim the screen brightness below the minimum. I was wondering how does it do that? May 14 06:50:48 note that Amazon US specifically list Nepal as a country they ship to May 14 06:51:47 the problem is sending them money May 14 06:52:28 the government here has this weired policy that you can't send US dollars abroad without a big business cause May 14 06:53:54 guys- Using existing Keystore - does that work for different apps? or should I create a new Keystore alltogether ? May 14 06:54:40 and what "Location" is it they want me to browse to for either of the above choices? is it a specific file type or something? May 14 06:54:45 or a regular folder? May 14 06:58:10 Trekka12: you may use the same key to sign multiple apps. May 14 06:58:37 and by location they probably mean the folder where your keystore is located. May 14 06:58:38 and need that same key for all future version of that app May 14 06:59:04 ok, but how then I create new keystore? May 14 06:59:18 I try to make new folder but it just wont accept it as "Location" May 14 06:59:21 in eclipse May 14 07:00:09 can't you just click create keystore May 14 07:01:07 it gives me that option May 14 07:01:12 when exporting as Android application May 14 07:01:34 I think ive done it before as well since I already got some keystores, but for the simplicity of having them separate for separate apps, i wish to create new one May 14 07:02:10 it says "The Location is the path to a directory" But I cannot select a directory when I browse? May 14 07:02:14 why would you want them separate it is just there to identify you right May 14 07:02:37 Ok, but I have previously created app specific keystores tho May 14 07:02:48 so the name of the keystores is quite un-fitting for the new app im creating May 14 07:03:24 hence with the knowledge of it being possible to re-use for multiple different apps I want to create a keystore and key which can work for that uni-purpose May 14 07:04:13 for your old apps you should be using those old keys to update to play store though May 14 07:04:29 yea that I am May 14 07:04:34 but for this new app May 14 07:04:36 oh May 14 07:04:37 w8 May 14 07:05:02 it accepted my path when I typed in me_keystore in the folder I had entered and selected May 14 07:05:17 so im guessing its safe to continue on then May 14 07:05:21 it created that file May 14 07:05:23 ahh May 14 07:05:33 new keystore me_keystore May 14 07:05:36 okok May 14 07:05:37 nice May 14 07:05:59 for password is enough with 11 small letters and numbers right? May 14 07:06:00 not using eclipse these days so not exact on it May 14 07:06:12 ok, nps mate :) appreciate all advice ur giving me anyways :) May 14 07:06:48 مرحبا The_Phoenix May 14 07:06:48 مرحبا The_Phoenix May 14 07:06:49 مرحبا The_Phoenix May 14 07:06:49 مرحبا The_Phoenix May 14 07:07:09 ??? May 14 07:07:23 some sort of mythical spell May 14 07:10:11 مرحبا havchr May 14 07:10:11 مرحبا havchr May 14 07:10:11 مرحبا havchr May 14 07:10:12 مرحبا havchr May 14 07:11:19 seems like every time someone joins May 14 07:14:43 if I in future change name of my application, will my generated release key then become invalid? May 14 07:15:06 or I just choose the specific key each and every time I publish it again in future? May 14 07:15:07 you can't change the package name May 14 07:15:17 the App Project name* May 14 07:15:29 I can via Refactoring rename May 14 07:15:37 the app project name that is May 14 07:17:33 http://stackoverflow.com/questions/14069703/rename-app-in-google-play-store i guess its possible May 14 07:25:33 hi guys, it is reagarding Picasso U2020. when I scroll back, images are messed up. here the code https://github.com/kamoljan/Nefete/blob/master/nefete/src/main/java/org/kamol/nefete/ui/gallery/MyAdsItemView.java#L50-L56 however, I don’t know where is wrong May 14 07:27:02 ok ty meadhikari, btw you dont happen to know if rebuild of app is made automatically in eclipse or if I need to erase R.java and somehow get it back? May 14 07:27:12 Ive edited my Manifest file, thats why im asking to do this May 14 07:27:16 how to do this* May 14 07:27:44 kamol: probably this bug https://github.com/etsy/AndroidStaggeredGrid/issues/90 May 14 07:27:53 i never erased the file when i used eclipse May 14 07:28:33 ok May 14 07:30:51 f2prateek: I am not sure if it is the issue May 14 07:32:32 f2prateek: hahaha, yeah, that’s another issue, and thank you for pointing to that :D May 14 07:33:39 f2prateek: in my case, I am adding Facebook avatar on the top of the image. Location of the avatar is ok, but it adds avatar where it should not May 14 07:48:19 found the solution, it was that Im not loading into ImageView May 14 07:48:40 so, have to load some temp image into ImageView May 14 08:18:53 i add a header to a listview with addHeader, I don't get a clickevent May 14 08:19:05 but in the UI it still look clickable May 14 08:19:16 how can I disable that behavior? May 14 08:20:22 did you try May 14 08:20:23 android:clickable="false" May 14 08:21:45 Hey, can user have playstore account with other email than gmail ?? May 14 08:23:25 kamol doesn't work May 14 08:23:37 it isn't really clickable, it just look clickable May 14 08:24:39 I need to add some users to alpha-beta test of app, and it works with google-groups, question is if it only can be done with google emails/accounts ? May 14 08:24:50 vegetablesalad19: yes, you can have a Google account which uses a non-Gmail email May 14 08:26:04 hi May 14 08:26:22 what is the correct way to dispose an imageview? I am getting out of memory exception :( May 14 08:45:43 Hi guys. I want to open special links within my "WhatsApp" with a custom Android-App instead of the standard browser. How can I do this? May 14 08:46:49 Could anyone help me? May 14 08:50:38 LeonardDa, you could make your application handle intents for viewing URLs May 14 08:51:34 than using intent filter for only certain URL that comes from "WhatsApp" May 14 08:51:36 meadhikari: How can I do that. Have you some helpful links for me? May 14 08:51:56 http://stackoverflow.com/questions/8210794/android-how-to-launch-my-activity-instead-of-browser May 14 08:52:41 LeonardDa: you want to have your app handle specific URLs? May 14 08:53:09 as opposed to someone else's app May 14 08:53:27 Leeds: yes exactly May 14 08:53:46 Leeds: My app should open specific links within the "What's App" app May 14 08:53:49 good, just checking :) May 14 08:54:02 erm, it'll handle links for every app, or none May 14 08:54:56 Leeds: for every app May 14 08:55:12 Leeds: What I need is that it handles the same specific links for every app May 14 08:55:28 yes, exactly - it's nothing to do with WhatsApp May 14 08:56:18 Leeds: Yes. You're right. May 14 08:56:25 Leeds: Have you some useful tipps / links for me? May 14 08:57:03 did you look at meadhikari's link, and the documentation linked from there? May 14 08:57:33 Leeds: No I'll do it. But I'm collecting links from you. May 14 08:57:50 no, you're not May 14 08:58:54 you're following the links you've been given before asking for more information May 14 09:00:46 ok :) May 14 09:07:47 Any1 here worked with the new version of Android Google Maps API? May 14 09:08:05 Need to know how I can get API key for debug mode - I have the MD5 fingerprint May 14 09:08:24 um May 14 09:08:27 on the google API console May 14 09:08:37 I have already created a API key for Release of the App project on the Google API Console May 14 09:08:47 but that wont work for my emulators correct? May 14 09:09:26 or maybe I can just add another Android Key which represents my debugging fingerprint? May 14 09:09:46 in the Key I generated for the release build? May 14 09:14:37 because they upgraded the old gmaps api so that the tutorial i had to follow in my course litterature does no longer apply, they ask for SHA1 and not MD5 fingerprint for example May 14 09:14:55 which makes it a tad more confusing to orient May 14 09:16:30 https://developers.google.com/maps/documentation/android/start#get_an_android_certificate_and_the_google_maps_api_key May 14 09:16:43 you use the SHA1 key now May 14 09:17:22 ah ok May 14 09:17:52 is the still a requirement to include within in the AndroidManifest file? May 14 09:18:48 no need to May 14 09:19:13 the link also says which permissions to enable to get the maps API to work May 14 09:20:23 ah ok thx man May 14 09:24:08 avwave, youve also got link to site where I can find out how to specify which target GeoLocation to use for my mapfragment? May 14 09:24:25 cuz they dont seem to show that in that page May 14 09:25:40 you mean where to set the lat-long of the map fragment? May 14 09:27:16 on the left theres the "Map Objects", there you can find out how to configure the mapfragment, including how to change the displayed location and other goodies May 14 09:29:58 ok ill take a look May 14 09:30:36 however i seem to have issues with modifying the fragment inside my fragment java file, due to not being able to cast from View to MapFragment ;/ May 14 09:30:48 is it maybe possible to make Gmaps as A View instead of Fragment? May 14 09:30:51 inside the layout? May 14 09:31:33 ah hang on a sec, MapView exist also May 14 09:35:45 avwave, can I apply like functions as .setMapType(type) on my MapView or do I somehow need to get GoogleMap from my MapView since that is the core which functionality is to be added to? May 14 09:36:46 i think you need to set that to the GoogleMap object of the mapview May 14 09:37:18 so MapView.getMap().setMapType(type); May 14 09:37:33 ah, man thx! you are a Rock! ;D much appreciated, Ill try it out ^^ May 14 09:37:44 np May 14 09:37:59 :)) May 14 09:45:59 Hi, anyone had this problem , https://stackoverflow.com/questions/23650959/android-studio-debugging-stops-working-osx-samsung-galaxy-s5 ? May 14 09:51:06 how do you style the SearchView inside the ActionBar? like change the search icon and text colors? May 14 09:56:00 avwave: http://stackoverflow.com/questions/11321129/is-it-possible-to-change-the-textcolor-on-an-android-searchview May 14 10:01:06 hmmm.. a bit hacky, but it works. May 14 10:01:12 thanks barq May 14 10:02:04 Apparently you can't access it directly. May 14 10:52:49 is it true I can only "preview" an Android App using Google Maps via a real device and not an emulator? May 14 10:56:02 @Trekka12: sounds about right, since it requires Google Play Services, which only certified devices has access to May 14 10:56:30 Is there any difference to the compiled adk depending on 32 vs 64 bit Android sdk? May 14 10:57:01 ok thanks man, mortenolsen :) May 14 11:01:51 Hi! I have an app with a IntentService which creates an ongoing notification using NotificationCompat, but the notification hasn't disappeared when the service stopped. I do explicitly remove the notification in the IntentService.onDestroy() but it seems like that hasn't worked. Code is here: https://github.com/Peetz0r/BluetoothTTS/blob/master/src/nl/haas_en_berg/bluetoothtts/BluetoothTTSService.java#L48 May 14 11:04:25 also, I can't seem to reproduce it May 14 11:05:53 it mostly just disappears normally, but it didn't disaoppear yesterday. The notification has been there all night while the app (and the IntentService) weren't running at all. It got replaced by a new notification when I restarted the app juast now, and it disappeared as expected now May 14 11:06:34 Does anyone know why my post() method applied on my Handler doesn't work, while postDelayed() with 100ms as minimum value works? May 14 11:07:37 Both has the same effects, just put the Runnable on the UI thread queue. But ofr the second method, it just delay the action. May 14 11:08:43 I've heard of concurrent thread access, but I don't see any in my code. May 14 11:09:42 I don't really need to have the justification, since the solution with postDelayed is working, but it will be nice for to understand the reason. May 14 11:11:37 Someone here with some graphical android background ? I've got an issue with the following code : May 14 11:11:38 https://gist.github.com/daneoke/2d2c6d08855337e9bc42 May 14 11:12:35 I intent to draw a growing circle, which after reaching the height of the view, should appear to be torn down from within (start drawing black from the center of the cirkel, growing until the circle dissapears) May 14 11:13:17 Problem is, the moment it hits the case where it changes color, the entire circle (in yellow) just disappears, while the radius hast just become 0. May 14 11:34:00 Hi, could you advice me what's the best way to cope with urls - should I use URI, URL or pure String? May 14 11:44:50 http://stackoverflow.com/questions/23653698/animating-circle-surfaceview-stroke-actually-fills <- Issue mentioned here. May 14 11:53:51 Why does this form want a "Statement of why you believe your Google Play Developer Console account should be reinstated" when it's actually about a single app, not the account itself? https://support.google.com/googleplay/android-developer/contact/appappeals?hl=en May 14 11:55:22 Hi, How would you write unit test for application that fetches information from the internet and displays? May 14 11:58:32 I made an app that fetches content from the web parses it as json and present it in list views, how would i unit test such thing? May 14 11:58:46 meadhikari: Separate the fetching from the displaying. May 14 11:58:52 During testing. May 14 11:59:08 Test Json parsing with mock data. May 14 11:59:16 Test fetching from localhost. May 14 12:00:59 barq, i am really not understanding one concept, separating fetching from displaying, like in the project onSucess() method of the fetching you attach your displaying logic right? how to separate those? May 14 12:01:45 meadhikari: you should refractor your design to make it possible May 14 12:02:43 for example onSuccess() can call another method that is responsible for the displaying, and then simply test this method May 14 12:02:47 danijoo, any links would really help please share May 14 12:02:55 showResult(String myjsonString) May 14 12:03:09 and then test showResult while showResult is called from onSuccess May 14 12:03:36 I dont have one by hand. sorry :/ May 14 12:04:26 danijoo, thanks a lot for that insight will try that May 14 12:17:50 Running kitkat. My app is the default sms app. Still when I get a message the standard sms app pops up a notification message. Anyone an idea? May 14 12:23:41 There are things like 'screen dimmer' May 14 12:24:03 This places a filter over the screen, which reduces the brightness over what can be achieved with the dimmer alone May 14 12:24:12 err - mischan May 14 12:27:08 is that really necessary? on my phones you cant even see anything using the lowest standard setting May 14 12:28:40 njcomsec: In dim light it is too bright sometimes May 14 12:29:09 the s4's lowest brightness is a bit bright in some cases May 14 12:29:18 you sure it isn't an anti-glare screen? May 14 12:29:54 iv always had all my phones on constant max brightness and they seem fine in all situations May 14 12:30:33 well except direct sunlight reflecting of the screen where you cant see anything anyay May 14 12:32:15 Any good ideas for a sample app for practice? I'm bored. May 14 12:32:34 flappy bird May 14 12:32:51 No, that will just get your Developer Console access suspended. May 14 12:32:58 hey, whats a good way of working with SQL databases and localization. May 14 12:33:32 I ship an app with a database (where a list of objects is defined), every object has a name and a description which needs to be localized May 14 12:34:48 is storing the strings name in the databse and then getString(getResources().getIdentifier(name, "string", package)) a good approach? May 14 12:40:07 danijoo: Why not use a dict, one for each language? May 14 12:40:42 If you're not manipulating the data and it remains constant there's no need for a db. May 14 12:41:23 the objects are quite complex with up to 10 datafields (lots of them are numerical though). this is why I want to use a database May 14 12:41:43 ant not hardcode them. May 14 12:41:56 and* May 14 12:42:43 isnt a dictionary a bit contary to androids approach of localized strings.xml files? May 14 12:42:48 You can use a separate resource file. May 14 12:43:29 yeah thats what i want to do. Im just not sure whats the best way of matching the data of the table to the resource ID May 14 12:44:14 unique id->localized record? May 14 12:45:32 yeah. maybe something like this. May 14 12:45:43 not sure yet how to layout this. :/ May 14 12:45:49 anyone familiar with querying at Parse.com? May 14 12:47:07 I want to query data AFTER a particular object. can I do something whereLessThan or setSkip with the objectId? May 14 12:49:26 barq, project suggestion an alaram clock based on http://sleepyti.me/ May 14 12:56:51 Thanks. May 14 12:57:12 barq, will you be doing it? May 14 13:04:23 I am to have an ImageView in my Android App, But I dont have 1 singular Drawable folder, but instead 1 for every possible resolution, how do I then import my Image Resource? Do I have to somehow manually change my .PNG Files size for every resolution/viewport folder? or is there a smarter way of doing things? May 14 13:05:32 Trekka12: android handles that for you May 14 13:05:54 just get tem the drawable by its ID and android will check the devices resolution and use the correct folder May 14 13:06:36 making another folder with the name just drawable? May 14 13:07:33 check this: http://developer.android.com/guide/practices/screens_support.html May 14 13:09:30 you need to follow the naming convention. for exmaple drawable-mdpi for medium density etc May 14 13:09:52 if there is no folder with a name for the devices density, android will fall back to another one May 14 13:10:32 isnt "drawable" the fallback? May 14 13:12:03 yes. if its available. but you can also have a resource only in drawable-hdpi and not in drawable May 14 13:12:10 and it will still work May 14 13:14:03 hi May 14 13:14:59 hi May 14 13:17:27 has anyone here who has worked with fragments decided to use a single activity architecture? May 14 13:19:06 Is aonyone here using the appcompat library? May 14 13:22:05 tksko: yes May 14 13:36:03 tksko yes May 14 13:36:08 ok danijoo and meadhikari and njcomsec - thanks a lot :) Ill try it out :) May 14 13:37:01 Trekka12 man, this fragments architecture delimma is starting to become annoying. lol. I remember talking with you about fragments yesterday. May 14 13:37:50 fragments load so much faster than launching a new activity. but damn, i can't find a lot of material supporting that kind of architecture. there are two SO questions on it, with a bunch of upvotes and not really any good answers May 14 13:38:11 uh May 14 13:38:23 well i am having a strange problem thatr icant fix.. May 14 13:38:25 if your activites are starting up longer than fragments... you're doing something very wrong. May 14 13:38:35 also, nested fragments will kill you :P May 14 13:38:35 i have a simple activity with a listview May 14 13:38:51 and on item click, i try an intent to navigate to other activity May 14 13:39:02 the problem is that it only works on 4.x+ Android version.. May 14 13:39:09 but it fails in 2.x May 14 13:39:56 it says "ClassDefNotFound exception" May 14 13:40:12 post the stacktrace and code if you want help May 14 13:40:15 Mavrik yeah, I think I am starting to see that. I am having to nest them to solve certain problems, and I don't like it. but, with fragment vs activity load time, I did a test which was to replace container with fragment Foo, vs launch activity that contains fragment Foo, and replacing the container was very noticeably faster May 14 13:41:00 as I said May 14 13:43:11 http://pastebin.com/V1g5dby5 here May 14 13:43:32 the probllem is that i dont understand why it works on Android 4.x + and not in 2.x :S May 14 13:43:35 its a simple intent May 14 13:44:15 Both classess are in the same package.. May 14 13:44:22 the MainActivity and the ListadoRubro one May 14 13:46:16 tksko, you're using / extending / importing a class in listadowhatever that's not available on Android 2.x May 14 13:47:29 Is there some one in here who has some experience with the private channel of Google Apps and publishing apps to it? May 14 13:52:14 Mavrik, what do you meain? May 14 13:52:24 i cant import a class inside a listener? May 14 13:52:24 what I wrote. May 14 13:52:37 you're using something that's not available on Android 2.x May 14 13:52:48 android studio is great but takes lots of Memory, often freezes in my 4GB RAM is this a normal thing? May 14 13:53:35 IntelliJ idea or go home May 14 13:53:42 haha May 14 13:53:51 meadhikari, no. May 14 13:54:07 i see.. so you say that Java is not compiling the class for Android 2.x because i am using something newer.. May 14 13:54:42 Mavrik, is there something that i could do to prevent this than? like some setting ? May 14 13:54:44 OnQueryTextListener perhaps? May 14 13:55:04 i am using SearchView May 14 13:55:15 with a list of things and the SearchView to filter it May 14 13:57:06 meadhikari, prevent what? May 14 13:57:18 android studio from freezing May 14 13:57:28 well May 14 13:57:31 taking lots of memory May 14 13:57:41 no idea May 14 13:57:46 fix your computer or something? May 14 13:57:51 meadhikari: why do you think its a memory problem May 14 13:58:00 Use Eclipse :P May 14 13:58:08 which is better? Eclipse or Android Studio? May 14 13:58:26 Intellij Idea May 14 13:58:43 danijoo, because conky goes 3.71 of 3.75 on RAM uses May 14 13:59:08 what is the difference in intellij idea and android studio? May 14 13:59:09 "which is better? Eclipse or Android Studio?" - these questions are evil May 14 13:59:30 like "which is better? windows, mac or linux" - always resulting in shitstorms May 14 13:59:31 :meadhikari you can change settings to limit. usually default one is already good enough May 14 13:59:54 tksko, i used eclipse now just thought of changing :) May 14 14:00:20 try out and use what you like, theres not more to say about it May 14 14:00:37 meadhikari: if your IDE gave you shit for an hour every once in a while, how screwed would you be? if the answer is "not very," use android studio May 14 14:00:38 AS came from Intellij Idea… and those guys are very very good in IDE development May 14 14:01:13 frankdoyle, you mean this is common than? May 14 14:01:19 AS is googles fork of Intellij, and they share a lot of code, but I don't think it has the intellij guys behind it May 14 14:01:23 frankdoyle: sounds like you are doing something wrong May 14 14:02:11 danijoo: and that's why nearly every release has a minor update less than a day later fixing some crash/bug/problem? May 14 14:02:17 there is only one thing you should never do in AS: clicking update in the right corner popup if you want to work ^^' May 14 14:02:37 If anyone here has experience with hidden android APIs then please contact me as I'd be willing to pay you. I suspect what I need would likely only take an hour or 2 of your time at max and I don't mind paying some up front. May 14 14:02:47 frankdoyle: if you want to work, dont update. May 14 14:02:55 danijoo, don;t that thing fix bugs May 14 14:03:23 if there is an update, plan some time to fix and adjust your project to the new version May 14 14:03:35 If I didn't update Android studio every time there might be a bug, I'd still be sitting on the initial release, which was just as terrible as any of the updates they've put out May 14 14:04:14 just stop using the gradle shit May 14 14:04:18 i didnt say dont update, i said dont update when ou want to work May 14 14:04:22 and AS starts working fast and flawlessly May 14 14:04:26 just like IDEA May 14 14:04:41 i got it!!! May 14 14:04:48 IntelliJ IDEA already May 14 14:04:49 i have to use the SearchView of the Appcompat v7 May 14 14:04:57 Wheres my check? May 14 14:04:57 not the "normal" one May 14 14:04:59 my gosh May 14 14:05:04 see: thats why never asking which IDE is better :D May 14 14:05:13 hahaha May 14 14:05:19 it has begun again.. :D May 14 14:05:33 I use Eclipse at work.. May 14 14:05:46 so i use Eclipse for Android, because i can code some Android at work :P May 14 14:06:00 now i am "working" May 14 14:06:10 im not 100% confortable with both May 14 14:06:26 but got used to AS the last 2 month May 14 14:06:36 by the way, whats full form of AS? May 14 14:06:46 Used Eclipse in the past, not bad. But then came IntelliJ ... love it! May 14 14:06:48 Mavrik I just set up the test again. I have two buttons. One replaces a fragment into the container, the other launches an intent for an activity that is completely stripped down and only contains the fragment in XML. Replacing the fragment is definitely noticeably faster. May 14 14:06:49 Android Studio? May 14 14:06:54 it has its bugs, yeah, but in my opinion it improves really fast May 14 14:07:07 mattblang, again, you're doing something wrong May 14 14:07:10 instead of doing those tests May 14 14:07:15 run a tracer May 14 14:07:21 and see why activity startup takes as much time May 14 14:07:28 also, disable the 500ms of animations :P May 14 14:07:29 I recall seeing Android Studio at some place May 14 14:07:36 but, that didnt' had proper Intellisense May 14 14:07:45 Like IntelliJ IDEA May 14 14:07:54 Omnipotent, Android Studio and IDEA are one and the same code May 14 14:08:06 so what you're saying makes no sense May 14 14:08:09 Yes, but sadly It didn't show any Intellisense. May 14 14:08:16 I did recognize familiarity in design May 14 14:08:21 I also read what you said earlier May 14 14:08:53 what is intellisense? May 14 14:09:02 Well putting stuff like, edit_text_id. <== you should immediately get a list of options, It simply didn't work with Android Studio May 14 14:09:11 Autocomplete basically. May 14 14:09:18 if you didnt see that, you deactivated it May 14 14:09:23 It wasn't mine. May 14 14:09:26 I use IDEA May 14 14:09:28 Omnipotent, then you messed something up royally when installing it May 14 14:09:29 because AS has it since 0.000000001 May 14 14:09:39 Omnipotent, because that code is identical to IDEA May 14 14:09:47 I mean, AS has alot of warts May 14 14:09:49 Yeah, nevermind, it wasn't mine. May 14 14:10:07 Mavrik: no, no it's not. even the feature set is different May 14 14:10:24 and I'd expect developers would notice when there's something wrong with their OS / setup May 14 14:10:31 and when the IDE is genuinly broken May 14 14:10:36 they've managed to break a lot of things that otherwise work in IDEA May 14 14:10:51 but sadly... way too many programmers aren't even capable of handling their underlying OS these days. May 14 14:11:12 frankdoyle, AS is a little more bleeding edge, the changes are merged from IDEA EAP's May 14 14:11:31 Mavrik doing traces now. when you say disable the 500ms of animations, do you mean that default launching destroying animation it does? I set android:windowAnimationStyle to null in styles to stop that. May 14 14:11:36 lately it seems IDEA lags a little bit in features after Android Studio May 14 14:11:59 I setup a cron job to clear by cache every hour, hopes this making using AS more smooth May 14 14:12:01 Mavrik, Again, it was not mine. May 14 14:12:03 I do not use AS May 14 14:12:09 It was first and last time I saw it. May 14 14:12:21 I wouldn't know if it was screwed or not. May 14 14:12:33 meadhikari, yeah, that'll just kill all of your performance May 14 14:12:34 :P May 14 14:12:39 *think* May 14 14:12:44 the cache is there to speed shit up :D May 14 14:12:59 To be honest, IDEA with ADB eats too much RAM May 14 14:13:06 IDEA only without ADB is ok May 14 14:13:27 Once you debug for the first time after starting fresh IDEA instance and you get "Configuring ADB" May 14 14:13:32 You start having Hardcheese May 14 14:13:41 Guys, is anyone of you familiar with the private channel of Google Apps? May 14 14:13:47 *shrug* May 14 14:13:52 it burns less than 1GB on my machine May 14 14:13:55 still 15GB left. May 14 14:13:58 1.5 on me May 14 14:14:07 and I don't have that much amount of RAM my friend. May 14 14:14:09 I have mere 4 May 14 14:14:12 also, get a SSD May 14 14:14:20 Yeah, no. May 14 14:14:22 any development work starts feeling better after that :) May 14 14:14:24 Not yet May 14 14:14:30 Let it be a bit cheaper May 14 14:14:33 especially since they're cheapass now May 14 14:14:34 dude May 14 14:14:40 like 90EUR for 100GB May 14 14:14:41 you can get the Samsung Evo for 140 May 14 14:14:52 best decision I ever made May 14 14:14:56 Not interested, Stuff runs pretty smooth for me May 14 14:15:03 except for when IDEA is on with ADB configured May 14 14:15:26 and I am quite afraid of the "write limit" for SSD May 14 14:15:54 I wouldn't want to install entire OS in a year or two May 14 14:16:36 O.o May 14 14:16:37 Omnipotent I don't care if the SSD only lasts two years, I will gladly buy another at $140 / 250 GB. the speed up is that nice May 14 14:17:06 Is there a way to use a Spinner or Picker in xml without using Java code to populate the contents? I want to use it to pick hours and minutes of time. So far the only option I found is to use a string-array with 24/60 elements. May 14 14:17:07 I really don't get any delay on machine.. May 14 14:17:15 yeah, having a good dev machine is like having proper tools for other professions May 14 14:17:47 barq, is there a reason why you don't want to use an adapter? May 14 14:17:57 because your request is...strange. May 14 14:18:27 barq, and... why aren't you using TimePicker instead? May 14 14:19:05 barq, are you really making that thing? May 14 14:19:12 barq: https://github.com/derekbrameyer/android-betterpickers May 14 14:20:14 * Omnipotent giggles May 14 14:20:31 To think of using spinner and add 24/60 elements as string-array resource May 14 14:22:38 Omnipotent: Otherwise you need to generate it on the fly in Java, don't you? May 14 14:22:59 In Android you got a proper TimePicker May 14 14:23:07 In Java... for GUI... it depends. May 14 14:23:16 It depends on the UI library you are using May 14 14:23:24 If its Swing... even they provide a picker May 14 14:24:26 barq: It'd just be a baseadapter with a count of 24/60 and a getView that returns a textview with position in it May 14 14:25:31 Hello! I have an error in my Manifest.xml, it does not recognize my activity name. Do you know why? May 14 14:26:07 Unless you've actually run benchmarks and determined that something needs to be optimized, you shouldn't be trying to outsmart the framework May 14 14:27:02 I just like the idea of separating UI from functionality. May 14 14:28:19 well, stop. May 14 14:28:36 Guys, how come my tablet doesnt show when trying to Run As Configuration by prompting active devices? May 14 14:28:43 Do i need to activate something? May 14 14:29:06 Mavrik when you run a trace, do you use the Debug class in code? May 14 14:29:20 you can just start tracing in DDMS. May 14 14:30:45 Trekka12, USB debugging should be enabled on the device May 14 14:31:02 barq: trying to follow patterns established outside android will leave you unhappy. It has its own set of best practices that sometimes seem strange coming from anything else May 14 14:31:42 ok Ill check meadhikari :) ty May 14 14:32:05 its enabled May 14 14:32:10 still doesnt show May 14 14:32:17 think it got something to do with adb.exe? May 14 14:32:53 I have to restart adb as sudo and it works for me May 14 14:34:03 what does that mean? May 14 14:34:07 superuser? May 14 14:34:18 Hello! I have an error in my Manifest.xml, it does not recognize my activity name. Do you know why? May 14 14:34:45 Trekka12, yes super user May 14 14:36:16 hm doesnt seem to work (Run As Admin is only way to do that for Windows that I know of) May 14 14:37:04 it also mentioned adding debuggable="true" to my section in Android Manifest file, but doing so only gives me error message and tells me it is Ill-Adviced May 14 14:37:10 http://developer.android.com/tools/device.html May 14 14:37:38 Trekka12, usb driver for your device, sorry I have not worked with windows May 14 14:39:15 ok May 14 14:39:43 My tablet is recognized in device manager as "Nexus 7" below Portable devices, which I assume means drivers are ok? May 14 14:40:40 I just tried to update the drivers - I already got latest installed May 14 14:40:58 Should be fine. May 14 14:42:00 but I still cannot see my tablet within Eclipse? May 14 14:42:01 :S May 14 14:42:10 Reconnect it May 14 14:42:21 I tried that too May 14 14:42:26 Ive got a Nexus 7 tablet May 14 14:42:26 Enable USB debugging May 14 14:42:30 is enabled May 14 14:42:51 I had to d-c r-c 3-4 times until it worked May 14 14:42:57 I have gotten it to work before, just forgot how I did it May 14 14:43:05 oh May 14 14:43:22 just pull the USB plug then? or something more sophisticated in manner of disconnects? May 14 14:43:47 frankdoyle: hey dude May 14 14:43:54 pthreat: sup May 14 14:44:34 frankdoyle: Question, I need to put a text input, a button below and a text area below, so the form is just in a vertical fashion May 14 14:44:51 frankdoyle: I'm I correct if I say I should use one fragment for each form piece? May 14 14:45:09 text area in one fragment, input in another fragment May 14 14:45:40 or can I achieve the same result by putting everything in the same fragment? Is this not recommended ? May 14 14:45:47 i would think all 3 would be in 1 May 14 14:46:26 frankdoyle: the textarea will refresh with the intent service we talked about yestreday May 14 14:46:28 yesterday* May 14 14:46:55 I wonder why can't I put one item below the other, it's like I can't in the visual designer ... May 14 14:47:20 pthreat: Id suggest learning to write the xml directly May 14 14:47:28 yeah May 14 14:47:31 i never use the ui builder May 14 14:47:43 sounds about right May 14 14:48:23 anyway, you should be able to put them all in a linearlayout, and that'd be fine May 14 14:48:34 you can put them in a fragment (probably best) or just have them in the activity layout May 14 14:48:51 the latter being the "lazy" but still not allt hat bad way May 14 14:49:00 Guys what you reccommend for Rest API calls (i only need to use post and get) should i go with Volley or AsyncHTTP or something else? May 14 14:50:20 ArcaneWater: I've taken a liking to retrofit recently. I used to use volley, its got terrible documentation and still has some issues May 14 14:50:33 and it feels like google doesn't really care about it May 14 14:50:45 I was looking and retrofit too seems preety good :) May 14 14:50:56 Yep I'm in the same boat as you frankdoyle May 14 14:51:12 also the image loading just stops sometimes May 14 14:51:53 Has anyone had issues with Android Studio when trying to restructure package directories May 14 14:52:13 So i guess thath with retrofit i should be able just to centralize one class for calls and then just call this class and methods? May 14 14:52:38 It always seems to treat nested folders as one package, and every time I add a new subfolder it doesn't show them nested but flat May 14 14:52:40 ArcaneWater: Are you blue powerade May 14 14:53:01 kinda. you declare an interface with all the calls that you want, then retrofit builds an object that implements that interface May 14 14:53:07 pthreat lol ^^ ? May 14 14:53:20 could be more than one interface too. doesn't have to be just one May 14 14:53:33 just figure that's how arcane water would look like May 14 14:53:39 s/figrue/figured/ May 14 14:54:13 I generally do one interface per api May 14 14:54:19 Okay thanks guys :) I need to rewrite our "old" async jobs currently they just use default android asny but i dont like it ^:) May 14 14:55:13 Any1 have Link to instructions of howto in windows via CommandLineTool open up ADB Devices? May 14 14:55:23 Ive forgotten how I did it when I was rooting my smartphone :/ May 14 14:55:34 need to open it from commandline i think May 14 14:55:55 One or more interfaces. You can break it up into multiple. May 14 14:56:29 Trekka12, adb.exe devices ? May 14 14:57:11 meadhikari - but I have to navigate to the folder where its situated at first, right? May 14 14:57:33 yes you have to do that of course May 14 14:58:18 or add it to your system path ... May 14 14:58:52 isnt there a way to open CMD from folder within which the adb.exe file is located+ May 14 14:58:53 ? May 14 14:58:58 like via right click or so? May 14 14:59:17 I swear I remember having known of such a shortcut sometime before :/ forgot it now tho May 14 14:59:43 Trekka12: dude just add the path to your system path May 14 15:00:42 I dont know how to do that unfortnality, and i try the cd D:\program command to try and navigate and the damn directory cursor wont move an inch May 14 15:00:50 Lack of memory is the worst... May 14 15:01:25 Dude don't be a retard and just google how to add a path to the system path please May 14 15:01:32 i make my layout under layout folder but it doesn't see by eclipse and it's not inside R.layout. May 14 15:01:34 Trekka12, http://www.computerhope.com/issues/ch000549.htm May 14 15:01:46 thx meadhikari May 14 15:05:32 ok finally made it to adb.exe within SDK the eclipse setup... ran it and no tablet shows there :/ May 14 15:11:36 Trekka12, USB drivers installed? ADB enabled on the device? May 14 15:12:19 finally it shows! May 14 15:12:52 seems that I had to switch from MTP Media Device USB Connection Mode on Nexus 7 to PTP for Camera (No clue why) As well as Un-install, and Re-install the Google USB Drivers May 14 15:13:13 it was probably reinstalling the USB drivers that did it May 14 15:14:09 the older drivers listed it as Nexus 7 below the category "portable devices", now the device manager lists it as "Android Device" and ADB Composite Interface someth someth May 14 15:14:14 Mavrik So I have been analyzing the trace, for that fragment vs activity load comparison. It seems like what is taking the most time is low level stuff, like dispatch message. I am trying to think if maybe something with the support library, or loading a fragment via XML, or something like that is the cause of the slow load time. May 14 15:15:06 Hi guys, i'm trying to give two parameters to an intent, but somehow it seems that the first paramters collide with the second… sample of my code : http://paste.h3b.us/?4b79b62c03ed0753#mkqJ+Bt2GICJkGt9530h9Ps3RriLrI9EOcdzCENFhSY= May 14 15:15:43 is there a easy way to justify a text within a textview? May 14 15:15:52 h3bus, you need unique strings May 14 15:16:02 no wait May 14 15:16:19 leslie: what do you mean ? May 14 15:16:34 ignore what I just said, I read it wrong May 14 15:16:58 no problem May 14 15:17:47 OBJECT_KEY and OBJECT_TYPE are different strings, right? May 14 15:18:08 right May 14 15:19:45 anyone using Android Studio for GAE backend dev for an Android app? May 14 15:20:01 scotopic: yep May 14 15:22:01 What kind of error does mostly cause NullPointerException ? Got it when trying to load my Google Maps Fragment View refering to my line 29 which basically is as simple as gmap.setMapType(GoogleMap.MAP_TYPE_SATELLITE); May 14 15:23:16 leslie: actually forgoy what I asked, I forgot to initialize OBJECT_KEY and OBJECT_TYPE… May 14 15:23:28 ah, I see, h3bus :) May 14 15:23:42 http://pastebin.com/dgrhKrQk May 14 15:23:48 that is my XML layout code May 14 15:23:58 Should i use MapView instead of com.google.etc.etc.? May 14 15:27:31 Is it worth using Sugar library for databases or you guys still prefer raw sql :)? May 14 15:28:47 ArcaneWater I hate not using ORM now. Using OrmLite myself. May 14 15:29:13 <--- OrmLite too May 14 15:33:51 Hi, I'm having trouble connecting my android tablet to a PC (xp). I can connect via ADB in the developer IDE but I cannot see the tablet in Explorer. Is there some other driver (apart from ADB) that I need? May 14 15:34:21 frankdoyle: I can Log.i in intentService right May 14 15:34:32 or is it different because the intentservice runs in another vm ? May 14 15:35:39 pthreat: no, you can do that. and it should still be running in the same vm May 14 15:35:49 ok ... May 14 15:35:59 doesn't seems to be working hmmm May 14 15:36:57 are you filtering info? May 14 15:37:17 Can anyone please suggest a tutorial on setting up Robolectric on AS May 14 15:37:55 sweet google strikes the ban hammer on my app :/ May 14 15:38:33 mikedg: what was it about May 14 15:38:49 ip violations for something based off gan apache 2.0 app May 14 15:38:50 grrr May 14 15:39:09 "based off" May 14 15:41:56 mikedg based off what? May 14 15:43:53 Guys - I keep crashing my app when I try to access my Google Maps Fragment - Source code is here: http://pastebin.com/Whu3ZVYB NullPointerException is said to be the reason - But I dont see what it is that Ive missed - have done exactly the same referencing on plenty other Fragments and they work perfectly? Can it have something to do with my XML Layout? May 14 15:44:39 google auhtneticator May 14 15:44:46 just a thought, but perhaps mapView is null? May 14 15:45:01 google authenticator? May 14 15:45:12 yea I figure that much - that mapView is null... what I cannot figure out... is Why? May 14 15:45:16 Trekka12: you have to do May 14 15:45:16 mapView.onCreate(savedInstanceState); May 14 15:45:18 mattblang: the first lines of my descirption were "This is NOT the official Google published Google Authenticator. It is based off the open source code of that project, but with 2 main modifications. " May 14 15:45:33 and possibly some other stuff May 14 15:45:47 before you call getMap May 14 15:46:06 Trekka12: consider stepping through with the debugger. May 14 15:46:07 I dont get it frankdoyle ? any reference on the web for this? cuz the tutorials I followed did not mention this at all :o? May 14 15:46:15 yeah, big surprise. May 14 15:47:19 call through to super, use setContentView on the xml file. May 14 15:48:29 I cannot? That is not how onCreateView works, or? May 14 15:48:37 dont I have to do as I have done with returning the layout? May 14 15:49:11 Hey all, I’m all of 5 minutes into considering Android dev. I have plenty of experience in dev (ruby, cocoa, some C#, etc… virtually no java). I have an existing app I’d like to make an android version of. From the outside the Android information seems a little fragmented at first. Can anyone point me to “the source” for information? Is there a good place to learn what IDE to use, how to get set up, where to find library documentation, how May 14 15:49:12 get information on all the various hardware platforms / versions etc…? Not asking “how do I dev for android?”, I’m asking “where should I go to get the most authoratative information?” May 14 15:50:27 maybe that's not it. i have that in my maps code, but its been a while since i wrote it May 14 15:51:05 cpruitt, developer.android.com is pretty much all you need to start. May 14 15:52:29 cpruitt: if you have the time to spare, read the big nerd ranch first. once you're done, switch to android studio, adopt gradle, and use the android docs May 14 15:52:31 Mavrik: OK, good. So there are no third party IDEs or anything that have overshadowed and becom the norm in place of Google’s tools. May 14 15:52:34 frankdoyle ok May 14 15:53:26 Mango_Man: You say “switch to android studio”. Switch from what? Eclipse? May 14 15:53:41 cpruitt: yep, switch to android studio from eclipse May 14 15:53:59 Sorry, I’m used to a particular fruity company mantaining really tight control over what devs do. This kinda feels like the wild west to me. lol May 14 15:54:36 cpruitt did apple outlaw appcode ? May 14 15:55:40 g00s: No, but it’s certainly not the norm to use it. May 14 15:55:43 Mango_Man, why would you fuck up all your process by adopting gradle :P May 14 15:56:33 Mavrik: because it's super easy to integrate open source libraries with gradle May 14 15:56:34 anyway, d.android.com has eclipse and android studio tooling explained May 14 15:57:05 Mango_Man, while wasting tons of time waiting for the damn thing to build anything :P May 14 15:57:27 Mavrik: idk, it's pretty fast for me. my last build a minute ago took two seconds May 14 15:57:40 wow. May 14 15:57:41 only. May 14 15:57:48 maybe enable your gradle daemon or something May 14 15:58:09 cpruitt: I dont know the stats on who is on eclipse vs android studio but the future is android studio for sure May 14 15:59:24 davidcorrado: Most importantly for me starting out, what will most of the current accurate documentation cover? Eclipse or studio? May 14 16:00:07 cpruitt: the docs are pretty IDE-independent. just go with android studio. May 14 16:01:01 Mango_Man: OK, soulds like sound advice. I’ve installed a Eclipse a few times in the past & never really enjoyed it much. I’ll give Android Studio a try first. May 14 16:01:04 cpruitt, documentation will cover APIs and code May 14 16:01:06 not IDEs May 14 16:01:13 mattblang whats the latest version of ORM Lite 4.4.9 ? (need it for gradle) May 14 16:01:43 ArcaneWater good question, I am just using + May 14 16:01:51 Using AndroidAnnotations with Spring for Android, I am attempting to consume a RESTful API I created with CodeIgniter. For a POST request, I use the following: @Post("the/endpoint") APIKey login(Map credentials). This Map contains an "email" key and a "password" key. When I call this function, I get a 400 Bad Request error. Could anyone shed some light as to why? May 14 16:02:14 mattblang can you cp me how then gradle insertion looks? May 14 16:02:19 Mavrik: But there **are** docs on the IDEs right? I’m used to them being split apart but usually the IDE has some kind of “here’s how to use the darn thing” info. May 14 16:02:35 ArcaneWater it looks like, according to my .idea/libraries folder, that it downloaded 4.48. May 14 16:02:36 compile 'com.j256.ormlite:ormlite-core:+' May 14 16:02:37 compile 'com.j256.ormlite:ormlite-android:+' May 14 16:03:02 Using + is bad and you should feel bad May 14 16:03:03 ty May 14 16:03:12 mattblang: That's not a good idea May 14 16:03:31 SimonVT, MarkyC I do feel bad. but if it helps any, I did change some of my other includes to not use + anymore. just haven't got around to them all :P May 14 16:04:19 OK I think I’ve got enough to “hello world” myself into some kind of familarity. Thank you all, for your input. May 14 16:04:41 Mavrik xavier said ant was going to be deprecated, you'll have to face the music sometime ! May 14 16:05:02 small explanation: If there are breaking changes in ormlite, your app will use the latest version, possibly breaking your code. May 14 16:05:10 xavier recommends moving to gradle asap ;) May 14 16:05:38 MarkyC yeah, you are definitely right. I had that happen actually, with pull to refresh I think. changing the rest of my + includes now. May 14 16:05:49 g00s: screw you I like lambada and no one is going to convince me to mambo! May 14 16:06:41 mattblang: Generally, the revision number (MAJOR.MINOR.REVISION) can be viewed as safe, so maybe 4.8.+ is okay. Though it really depends on the package May 14 16:06:42 ArcaneWater weird, I am not sure why 4.43 is the latest tag on github. I am using 4.48 May 14 16:07:09 MarkyC roger that May 14 16:07:10 wtf, my Eclipse seems to have crashed and erased a lot of the Bundle files randomly so that I can no longer start my Android Dev Env Bundle May 14 16:07:36 is this a known problem ? :S May 14 16:07:58 Trekka12 welcome to android dev! May 14 16:07:59 or maybe just temporary? May 14 16:08:09 *hopeful* May 14 16:08:29 it will just no longer start the eclipse May 14 16:08:30 :S May 14 16:08:43 and before it totally crashed the package explorer totally disappeared May 14 16:08:57 so wierd May 14 16:08:57 :S May 14 16:10:19 Trekka12 an option is AS; at least then you get this cute red notification saying there was an internal error but the IDE doesn't crash May 14 16:10:19 *cough* Android Studio *cough May 14 16:10:31 what g00s said May 14 16:11:09 :/ May 14 16:11:37 Canary or Dev Channel with Android Studio? May 14 16:11:55 I rarely have problems with Canary May 14 16:12:02 Depends how production critical your stuff is May 14 16:12:14 And if it is, you probably aren't using AS anyway May 14 16:12:27 :/ Now the android app dev environment starts loading workspace and then completely stops and I think crashes :( May 14 16:12:33 must be a way to fix this May 14 16:12:50 get a new computer May 14 16:12:56 nothing wrong with my pc dude May 14 16:13:06 maybe a new house to put it in - it's the only way to be sure May 14 16:13:06 Hi, i set up robolectric can do testing from commandline but not able to integrate with IDE, run configuration is not shown when i right click the java folder inside test May 14 16:13:14 pff wtf May 14 16:13:19 meadhikari: which IDE? May 14 16:13:26 AS May 14 16:13:53 it feels like AS is not recognizing it as folder containing java file May 14 16:14:14 like the icon for the folder is brown not blue :) May 14 16:14:25 meadhikari: you have to define it in your gradle. buildfile May 14 16:14:27 feels like AS .... May 14 16:14:35 that'd be a nice feeling right May 14 16:14:51 Trekka12: Do you use Version Control? such as git? May 14 16:15:00 sourceSets May 14 16:15:00 { May 14 16:15:00 androidTest.setRoot('src/test') May 14 16:15:02 } May 14 16:15:04 like this May 14 16:15:34 danijoo, i have this in my gradle file http://pastebin.com/n4y2cdE5 May 14 16:16:36 Trekka12: have you tried turning it off and on again? May 14 16:16:38 Is it plugged in? May 14 16:16:45 g00s, I'm not using ant :) May 14 16:17:04 g00s, and I have no problem switching when it gets fast enough and gets the features in Android plugin May 14 16:17:22 Mavrik ah so you just use the ide builder May 14 16:17:26 I just don't like to suggest Gradle to newbies because right now it slows down builds to a crawl :) May 14 16:17:45 g00s, right now we use mvn for most of our projects and gradle on couple of libraries we maintain May 14 16:19:21 does apache 2.0 not apply to artwork? May 14 16:19:37 usually you want to license artwork under one of the CC licenses May 14 16:19:48 software licenses usually don't cover artwork (enough) May 14 16:20:33 f*ckng wonderfull..... Got the Android dev env to start up again... but it was by erasing the plugins metadata content in workspace folder, which resulted in completely blank workspace.. and I cant get it back it seems :/ May 14 16:20:51 Good morning, was curious if there are any eclipse wizards in here willing to help me with a java/xml error I am getting May 14 16:21:51 danijoo, now the icon turned blue, gradle build file was talking a bit longer i guess thanks for that May 14 16:22:10 yw May 14 16:22:26 lov: http://pastebin.com/raw.php?i=pyGGC6wC May 14 16:23:01 lov: I never get the logs in logcat from the ThangService May 14 16:23:37 is there a way to 'inject' an into a ? basically, i want borderlessButtonStyle (which is kinda complicated) and I would like to add an for an activated state (?attr activatedBackgroundIndicator) without starting from scratch May 14 16:25:38 basically trying to replicate the behavior of navigation drawer items in Google Drive May 14 16:26:21 blue = activated, otherwise behave like borderlessButtons May 14 16:26:37 Trekka12: This is why we use version control. I would suggest migrating the project to a fresh install of eclipse May 14 16:28:24 Does anyone here have a nice way of integrating testing into Android Studio with Robolectric? I know you can hand-edit the .iml file to make it work... do people just not use the integrated IDE? May 14 16:28:47 I am having an issue. I have a res/xml preference xml file that will nto accept code no matter what....even when I place known code that works inside of it May 14 16:29:16 Trekka12: maybe #eclipse might be able to help you restore your IDE, but in my opinion, I would just reinstall, move the project over, and use git/svn/mercurial to track the project (using a good .gitignore or similar to NOT track IDE files). Then in the future if your IDE messes up, you no longer have to waste time fixing it, just reinstall, pull your code back and get back to work May 14 16:30:12 if I run $ gradle robolectric, it will apparently run any tests I have set up, but it wasn't clear that is what's happening unless something actually fails. May 14 16:35:38 Hi, I keep getting JUnit version 3.8 or later expected while using robolectric in AS, googling the problem is not helping, please help May 14 16:47:47 pthreat: so look at the general logcat output; is your service actually started? Heck, attach the debugger, see if your service is instanciated. May 14 16:48:06 pthreat: did you add the service to your manifest? May 14 16:48:17 lov: let me check May 14 16:50:49 just updated gradle to use 0.10.+ May 14 16:51:08 Now I get this "groovy.lang.MissingMethodException: No signature of method: com.android.build.gradle.AppPlugin.getRuntimeJarList() is applicable for argument types: () values: []" May 14 16:51:17 anyone know how to fix that? May 14 16:55:29 lov: You ... you are sexy May 14 16:56:33 don't grope me bro May 14 16:58:09 I'm creating a table layout programmatically, how can I set android:layout-width="0dp" and android:layout-weight="1" programmatically? May 14 16:59:45 gradle worked about a half hour ago... wtf May 14 17:00:24 shekibobo i thought i saw something like that with gradle 1.11 and AS 0.5.7 May 14 17:00:35 oops, 1.12 + 0.5.7 May 14 17:00:38 I'm on 1.12 with 0.5.8 May 14 17:00:43 hm May 14 17:00:51 which is supposed to be compatible with gradle 1.12 May 14 17:01:26 WhatElse: use setLayoutParams on your child views with TableLayout.LayoutParams objects May 14 17:01:33 hi guys, do you have a clue as to why adb gets stuck while uploading an apk? May 14 17:01:39 either I use gradle plugin 0.9.0 and can't run gradle tests from the command line or I use 0.10.0 and I get that error with AppPlugin.getRuntimeJarList() May 14 17:05:37 i have implemented fling-functionality, but it is way to sensitive so now i can't scroll anymore. does anyone have experience with this? May 14 17:06:09 i already tried setting the mMinimumFlingVelocity in the GestureDetector via reflection, but it doesn't help May 14 17:10:10 * pthreat pets one of lov's nuts May 14 17:12:26 shekibobo why not use 0.10.1 ? May 14 17:12:52 Actually specifying classpath 'com.android.tools.build:gradle:0.10.+' May 14 17:13:10 k May 14 17:25:25 i think google should put out an aar with styles for things like navigation drawer elements May 14 17:25:40 although even among gapps there is some discrepancy May 14 17:25:56 seems like most make selected items bold May 14 17:26:03 but some dont May 14 17:26:09 g00s yup... May 14 17:26:27 and then the font / bg for settings & help is different May 14 17:27:06 still haven't found a good way to make the selected item bold May 14 17:27:48 leslie man, sorry, but im happy im not the only one May 14 17:28:03 i never tried it; thought it would be easy O.o May 14 17:28:43 the problem is that the styles are only read when the views are created/inflated. I don't think you can change the style of an existing view May 14 17:29:04 oh May 14 17:29:25 seems like you would style it by default; and then at runtime grab the font-face attr and apply it May 14 17:29:46 hm May 14 17:29:58 or would this be in the selector May 14 17:30:08 can you specify that in the selector O.o May 14 17:30:14 selectors can only be used for colours May 14 17:30:21 yeeaah May 14 17:30:27 now i remember May 14 17:31:22 For swipe list views, in the style of android-switelistview by 47deg -- do you put a swipe listener onto the entire listview object and try to locate which item they are swiping using the location of the touch event? Or do you put swipe listeners onto each item within the listview? May 14 17:31:26 I imagine you could use setTextAppearance on the selected one, but I'm unsure how you'd set the previously selected one to the unselected style May 14 17:31:58 how do you generate eclipse files for an android project based on gradle ? i tried ./gradlew eclipse and it only generates a java project May 14 17:32:03 i wonder what looks nicer, the bolding approach, or the way google drive does it May 14 17:32:11 kinds like drive better May 14 17:32:54 the Drive way is easy to do May 14 17:32:56 but its one of those things … i could use either; if only google would have something in the design guidelines. i don't want to be inconsistent May 14 17:34:13 leslie do you know how? i was using borderlessButtonStyle but couldn't get .setActivated() to work May 14 17:34:37 or do you think they are just using a listview with single selection mode May 14 17:34:54 it just changes the background drawable, right? so you set the background of the view to a state selector May 14 17:35:17 looks like it to me, g00s May 14 17:35:33 listview? May 14 17:35:51 yup May 14 17:36:12 I think you can use view inspector or something to check May 14 17:36:29 wow haven't done that in a looong time May 14 17:36:35 * g00s jogs memory May 14 17:36:57 me neither May 14 17:37:28 so apparently I was using classpath 'com.novoda.gradle:robolectric-plugin:0.0.1-SNAPSHOT' May 14 17:37:51 after removing that and switching to using plugin 'android-test' with classpath 'org.robolectric.gradle:gradle-android-test-plugin:0.10.+' May 14 17:37:56 I can build again May 14 17:38:34 hm, i keep having this problem where adb devices shows my device as offline May 14 17:38:59 adb kill-server and reconnect = no dice May 14 17:40:47 Drive has a lot of views... May 14 17:41:13 374 for me May 14 17:42:27 are nesting fragments a safe way to go these days? seems like I have read a fair amount of comments about nesting fragments being problematic May 14 17:42:36 leslie yeah, looks like listview May 14 17:43:52 yup, g00s May 14 17:44:46 now when i try to dump hierarchy view for Keep it only has a screen dump May 14 17:45:02 my cursor turned to crosshairs and won't select stuff now May 14 17:45:20 leslie using 'android device monitor' ? May 14 17:45:35 yeah May 14 17:45:47 such a piece of crap May 14 17:46:28 g00s http://i.imgur.com/SSF86yu.png May 14 17:46:38 really slow, yeah, but it might be the number of views it's listing May 14 17:46:47 hmm May 14 17:46:59 anyone did a card UI library with section support yet? May 14 17:47:04 or do I have to roll my own. May 14 17:47:33 only one i know of is cardslib May 14 17:49:28 leslie out of curiosity, can you try 'Keep' also ? just curious, hierarchyviewer keeps malfunctioning May 14 17:49:41 sure, one sec May 14 17:49:48 i get 10:48:29 E/hierarchyviewer: Unable to get view server protocol version from device 089d8eff May 14 17:49:57 so i wonder if the drive guys forgot to take that out :D May 14 17:50:07 didn't we have to explicitly add the view server thingy ? May 14 17:52:23 oh man, ViewServer is just some bits sitting on romain's github May 14 17:52:24 https://github.com/romainguy/ViewServer May 14 17:52:25 bwhaah May 14 17:52:39 g00s DrawerListView, so I guess some sort of extended ListView class? May 14 17:52:53 leslie but it actually worked ? May 14 17:52:55 hmm May 14 17:53:13 i tried 'monitor' and standalone hierarchyviewer and they just show nothing May 14 17:53:44 works ok for me May 14 17:56:50 it's a custom extention of ExpandableListView, g00s May 14 17:57:01 ok May 14 17:57:05 Emulator/eng builds lets you use hierarchyviewer on any app, production builds doesn't May 14 17:57:30 we both used it OK on Drive May 14 17:57:37 leslie got it to work for Keep, i didn't May 14 17:57:43 i get 'unexpected error while parsing input: invalid ui automator hierarchy file' May 14 17:57:51 I'm running Paranoid Android, dunno if that makes a difference May 14 17:57:56 ah,k May 14 17:58:14 but i thought it had to do with what SimonVT said May 14 17:58:24 oh, nm May 14 17:58:31 thought debug=true turned it on May 14 17:59:07 so weird Drive worken then. maybe they included ViewServer May 14 18:03:59 mine has ro.debuggable=1 in default.prop, must be that May 14 18:04:23 has anyone used the ffmpeg libraries? I have a problem with using avioContexts: http://pastebin.com/fqqGzKzf May 14 18:04:40 I can't get the callback to work - it crashes when ffmpeg tries to call it May 14 18:05:48 Any1 know of good way to make sure Google Maps MapView is not null in onCreateView of a Fragment to be loaded into the Activity? May 14 18:05:57 Ask with heavy heart again, anywhere here familiar with Parse.com? May 14 18:06:14 Voicu you can see what jasta did here maybe https://github.com/jasta/rojocam May 14 18:06:36 g00s: I found Parse.com's irc, 7 people online including me :P May 14 18:06:44 hehe :) May 14 18:08:24 I cant get my Google Maps to show cuz of the crash the NullPointerException is causing, any1 got suggestions of how to make it work? :/ May 14 18:08:47 using Google Maps MapView to represent the map May 14 18:11:25 Trekka12, is it from findViewById? May 14 18:11:28 my problem I think really is how I can fetch the MapView from XML Layout that was inflated in my onCreateView inside of the same Fragment May 14 18:11:30 yes May 14 18:11:34 think so May 14 18:11:47 You want me to upload source? May 14 18:11:57 no, make sure you're using the right ID May 14 18:12:14 I am May 14 18:12:15 also consider using MapFragment May 14 18:12:38 I cannot use MapFragment in the setup im using atm though and dont have the time to adjust it May 14 18:12:41 unfortunality May 14 18:12:43 the thing is May 14 18:12:44 ah right May 14 18:13:10 g00s, doesn't seem to use any avio contexts like I do May 14 18:13:30 I tried this: MapView mapView = (MapView) mainLayout.findViewById(R.id.mapView); <- but I cannot put .getMap() after my .findViewById(R.id.mapView) - its like ive navigated to wrong part, or forgot/missed something May 14 18:13:46 but Have no clue what May 14 18:14:04 Google gives no suggestions for MapView either, only for the MapFragment.. (typical..) May 14 18:14:36 that means findViewById couldn't find a view with the ID you specified May 14 18:15:05 or that I cannot locate my MapView via mainLayout.findViewById(id) May 14 18:15:41 my MapView is as follows: so should be alright, no? May 14 18:16:06 yeah. and you said something about it being in a fragment? May 14 18:16:08 it is also placed within a LinearLayout May 14 18:16:12 Yes May 14 18:16:36 There you go: http://pastebin.com/Whu3ZVYB Source for the Fragment file and XML Layout May 14 18:17:09 ive used exactly same setup for TextViews, Entire XML Layouts before and all of those worked May 14 18:17:18 whats so special/what am I missing with my MapView? May 14 18:18:02 fyi- the gmap variable is the one turning out to be equal to null :/ May 14 18:18:45 oh, so not the MapView? May 14 18:19:34 I think it is null too since I cannot put my .getMap() after it - or at least I do not get any suggestions to put it there - just like if it doesnt belong May 14 18:19:58 I have put my .getMap() after it, but that was purely impulsive - obviously it does not work as intended May 14 18:20:04 something is wrong/missing May 14 18:20:04 are you using a device or an emulator? May 14 18:20:09 device May 14 18:20:12 ok May 14 18:20:17 cuz I heared emulators are useless to test gmaps May 14 18:20:31 Nexus 7 to be more specific May 14 18:22:40 anyone have any experience with nesting fragments? May 14 18:22:56 Trekka12, I don't suppose this is any help? https://github.com/joekarl/joekarl.github.io/blob/master/_posts/2013-11-1-android-map-view-inside-fragment.md May 14 18:23:52 wait, http://joekarl.github.io/2013/11/01/android-map-view-inside-fragment/ that's better May 14 18:24:30 might be May 14 18:24:33 checking it out right now May 14 18:24:34 thanks May 14 18:25:39 is all those methods following onCreateView really necessary u think? May 14 18:25:50 yes May 14 18:27:49 ah hehe ok May 14 18:27:54 might explain a lot May 14 18:28:10 that's all stuff that MapFragment does for you May 14 18:28:59 ah May 14 18:29:00 ok May 14 18:29:14 why was this never mentioned by google anywhere? May 14 18:30:13 Trekka12, it is, in the documentation May 14 18:30:19 where? May 14 18:30:35 I read MapView documentation, I read Google Maps API v2 Doc etc etc. May 14 18:30:39 couldnt find it nowhere :S May 14 18:30:41 http://developer.android.com/reference/com/google/android/gms/maps/MapView.html "Users of this class must forward all the life cycle methods from the Activity or Fragment containing this view to the corresponding ones in this class." May 14 18:31:11 they could have marked that text in red or something imo :/ May 14 18:31:13 ah well May 14 18:31:40 Ill try to apply their (for me) newfound recommendations and see where it leads, Much appreciated :)! And Many thanks :P May 14 18:31:56 you're welcome May 14 18:37:22 What the fuck does ... means in Java May 14 18:37:24 suspense? May 14 18:37:31 lol May 14 18:37:33 Integer... May 14 18:37:42 WOW SUCH SUSPENSE JESUS! May 14 18:37:51 Array .... May 14 18:38:05 Wow holly shit I'm tripping balls now!! May 14 18:39:32 pthreat, it's like varargs in C, you can pass it any number of arguments May 14 18:39:41 pthreat, you're seeing it in a method signature, yes? it's so you can do things like sum(1,2) or sum(1,2,3,4,5) without having to declare a sum for 1 param and 5 and everything in between May 14 18:39:50 leslie: SO it's like PHP default capability of having multiple arguments May 14 18:40:02 I don't know, maybe? May 14 18:40:21 frank3 and leslie: Yes PHP has that by default May 14 18:40:41 the notation is funny though May 14 18:40:48 Array... May 14 18:40:58 pthreat: so it just lets you put whatever you want in a method, and itll try to make it work? May 14 18:41:13 frank3: You can type hint in methods May 14 18:41:33 frank3: you can also completely ignore any number of additional arguments May 14 18:41:39 pthreat, I think you're talking about argument types, not number of arguments May 14 18:41:39 frankdoyle: Oh it was you hello! May 14 18:41:48 leslie: talking about both May 14 18:42:15 yep. meetings all day everyday May 14 18:42:38 May 14 18:42:42 (so i gotta close my laptop and move around) May 14 18:43:00 ah, of course, func_get_args May 14 18:43:03 that's for a simpel function but can also be applied to a class method May 14 18:43:10 simple May 14 18:43:11 if using the navigation drawer - from implementation perspective, do you have the drawer as part of the activity, or make it its own fragment? who is responsible for handling starting new activities / switching fragments - docs show drawer, AS template has activity. also for nav hubs, how is the location in the navigation structure determined and reflected back in the drawer ? May 14 18:43:12 leslie: yep May 14 18:43:19 leslie, now the only thing is that I get one single error message, which reads: "Unreachable catch block for GooglePlayServicesNotAvailableException. This exception is never thrown from the try statement body", And this is on the try-catch statement @ http://joekarl.github.io/2013/11/01/android-map-view-inside-fragment/ the first block of Fragment method code (onActivityCreated Override) May 14 18:43:24 Hey guys, rooted device question. i've tried out the shutdown command $su -c shutdown -P now and it seems to somewhat do the right thing on my tablet, but on a minix x7mini device (Television android device) it doens't seem to do anything. May 14 18:43:52 bacon1989 see topic please May 14 18:43:54 frankdoyle: hey man, thanks for the help on that link you gave me yesterday? Worked like a charm, that and lov's help pointing the obvious because I didn't add the service to my manifest May 14 18:44:13 g00s: ah ok May 14 18:44:38 g00s, up to you. either way would work. May 14 18:44:43 pthreat, yeah, no problem May 14 18:44:45 g00s, the project template creates a fragment for the navigation May 14 18:44:53 so that's how I do it May 14 18:45:10 frankdoyle: I could launch another paralel process from an intentservice right? May 14 18:45:32 don't think it's really necessary but I'm thinking May 14 18:45:44 leslie one thing i noticed about the template, is that it saves the current position in onSaveInstanceState or something - doesn May 14 18:45:50 t that seem really brittle ? May 14 18:46:09 i mean, getting out of sync with what android is really showing, based on what the fragmentmanager is doing May 14 18:46:10 pthreat: not a new process, probably, but a new thread. May 14 18:46:17 * g00s feels like this is all a huge hack May 14 18:46:24 yes I mean thread by process, I'm sorry May 14 18:46:35 important distinctions May 14 18:46:39 yeah May 14 18:46:48 g00s, depends if your navigation is dynamic, if it's just a fixed list, I don't see why it'd be a problem May 14 18:46:49 I know, because of virtual machines May 14 18:47:03 frankdoyle: it was just a head typo thing May 14 18:47:11 pthreat: so Services by default don't run in a separate thread. However, Intentservices add some things to make your onHandleIntent() run in a separate thread May 14 18:47:20 hm, the fragment manager is the authority of the state. maybe the drawer should query it somehow May 14 18:47:36 a friend pointed me that yesterday May 14 18:47:47 I don't know a lot about how fragments work May 14 18:48:15 g00s: your nav drawer, whatever form it takes, be it a fragment or just a listview in the activity, should just tell the activity "thing x was pressed, show it" May 14 18:48:39 then the activity can take care of actually deciding what to show May 14 18:48:52 And you can do that g00s via listItemClick method if you are using a ListFragment or similar May 14 18:49:26 listItemClick(int position) for example May 14 18:49:41 so the int position tells what article/menu alternative was selected May 14 18:50:40 frankdoyle yeah … but imagine we press home, process gets destroyed. lets say I'm at Activity B in the graph A -> B. so i go back to my app, process gets recreated, Activity B shows … how does the nav drawer know to highlight B ? May 14 18:50:42 leslie, you ever seen the following error message: Unreachable catch block for GooglePlayServicesNotAvailableException. This exception is never thrown from the try statement body? May 14 18:51:04 it means the code in the try block never throws that exception, Trekka12 May 14 18:51:16 the ListFragment would know how to highlight selected alternative May 14 18:51:40 ok leslie, does this mean I have to throw it from my ActivityFragment MainActivity.java? May 14 18:51:45 or what did I miss? May 14 18:52:20 frankdoyle the only thing i can think of, is that the fragment remembers what was selected in a bundle for saved state - May 14 18:52:22 because I did already import the GooglePlayServicesNotAvailableException library into my Gmaps Fragment where all the newly added methods went May 14 18:52:35 i dunno, mirroring that state in the bundle vs what android shows seems brittle May 14 18:52:46 you're calling MapsInitializer.initialize, right Trekka12 ? May 14 18:52:50 yes May 14 18:53:02 with inParam getActivity() May 14 18:53:12 maybe they changed it so that exception isn't thrown anymore, or isn't checked anymore May 14 18:53:17 ah May 14 18:53:23 ok so nothing I can do about it? May 14 18:53:47 just remove the try/catch May 14 18:53:48 I should just erase the try-catch block then perhaps? May 14 18:53:50 ah May 14 18:53:50 ok May 14 18:53:53 nice May 14 18:54:02 wasnt to difficult if thats the case ;P May 14 18:54:30 ill try it out May 14 18:54:31 thx May 14 18:54:34 - again ;P May 14 18:54:43 Trekka12, the documentation states "A ConnectionResult error code." is returned, so you might want to check against that to see if it worked May 14 18:56:43 how can I do that? May 14 18:56:50 where u found that info? on Google Developers? May 14 18:57:04 I found http://dimitar.me/mapsinitializer-initialize-no-longer-throws-googleplayservicesnotavailableexception-with-the-new-google-play-services-lib-ver-15/ stating the they upgraded library not to throw that exception May 14 18:57:24 ahh May 14 18:57:29 http://developer.android.com/reference/com/google/android/gms/maps/MapsInitializer.html <- u found the info there? May 14 18:57:57 ah I see. compare the return result of initialise() with ConnectionResult.SUCCESS, set mapsAvailable to false for anything else May 14 18:58:29 or whatever the variable was, I forget May 14 18:58:50 aha ok May 14 18:58:53 ill see May 14 19:01:02 time to try and run the app once more , and see if it works or not *fingers crossed* :P May 14 19:02:32 seems to be working!!! Yeaj!!! ;D Thanks leslie! :) May 14 19:02:38 awesome May 14 19:02:43 good to hear :p May 14 19:02:46 woho ^^ May 14 19:02:47 btw May 14 19:02:56 May I ask you a completely unrelated question more? May 14 19:02:57 :P May 14 19:03:16 are you familiar with using inside of XML layouts? May 14 19:03:29 not really, no May 14 19:03:34 ah ok May 14 19:03:36 nvm then May 14 19:03:44 what did you want to know about them? May 14 19:03:46 Any1 else familiar with using inside of XML Layouts? May 14 19:03:58 I cant seem to get them to work as they are designed to May 14 19:04:07 that's a bit vague May 14 19:04:26 I use them to repeat commonly occuring TextView settings which I need to have mutiple instances of in same XML Layout file May 14 19:04:28 for example May 14 19:04:51 and add unique settings like text, and textAligment etc. for each and every one May 14 19:05:08 I'm not sure how that'd work with view IDs May 14 19:05:10 but when previewing the entire XML Layout in my app on Nexus 7 device I can only see the first one May 14 19:05:33 Ill demonstrate it how Ive done and what I mean by uploading source code to pastebin, hang on sec May 14 19:05:39 u'll see what I mean May 14 19:11:05 when using a navigation drawer, should the back button take you back to home, then out of the app. Or should it behave like pre fragment days and take you back through whatever combination of navigations got you to where you are? May 14 19:12:33 leslie - here you go: http://pastebin.com/1jvEunUv May 14 19:13:18 first I show the 4 XML Views to be included May 14 19:13:21 then the entire XML Layout May 14 19:13:32 which consist of both regular Views of different types as well as Includes May 14 19:14:01 although I cant seem to get more than 1 Separator, the Textview on top as well as my ImageView to show when app opens up the XML Layout file May 14 19:14:07 so obviously im doing something wrong May 14 19:14:47 http://developer.android.com/training/improving-layouts/reusing-layouts.html <- there is more info about the concept of reusable views via includes May 14 19:14:52 if interested May 14 19:15:07 looking May 14 19:15:33 ok :) May 14 19:15:34 thx May 14 19:16:31 I have no idea. are the views showing up in Android Device Monitor? May 14 19:17:24 what is that? May 14 19:17:59 monitor in the sdk May 14 19:18:20 hmm i think i never used that before May 14 19:18:24 Ill check and see if I can find it May 14 19:18:26 how does it work? May 14 19:18:28 just to start? May 14 19:18:57 run it, double click your app in the windows bit May 14 19:22:50 leslie i found and started the monitor, however I cant seem to "add my app" to the monitor? May 14 19:22:56 I have my device listed in left column May 14 19:22:58 but thats about it May 14 19:23:09 is there a bit that says "Windows"? May 14 19:23:16 yes May 14 19:23:22 didnt notice it before May 14 19:23:24 but yes there is May 14 19:23:45 Trekka12 http://i.imgur.com/fLI16r3.png May 14 19:24:50 ok I now added the window "Windows" but I cannot click the device within it May 14 19:25:06 getting following error when doing so: hierarchyviewer]Missing forwarded port for 015d3c265504101a May 14 19:25:07 [2014-05-14 21:24:24 - hierarchyviewer]Unable to load window data for window on device 015d3c265504101a May 14 19:25:07 [2014-05-14 21:24:24 - hierarchyviewer]null May 14 19:25:40 can you click the little triangle next to the device? May 14 19:25:57 (P.S. the app is already running on the tablet while trying to do this on monitor - maybe I should turn it off first?) May 14 19:26:03 sec ill check May 14 19:26:08 no, it should be fine May 14 19:26:12 no i cannot May 14 19:26:15 it is gray May 14 19:26:17 inactive marked May 14 19:26:19 oh, I dunno then May 14 19:26:40 maybe I need to run the app in Debug mode for this to work? May 14 19:26:47 right now Im only running the app May 14 19:26:52 try it May 14 19:27:46 apparently im unable to debug the device :/ May 14 19:28:03 maybe an emulator might work instead? May 14 19:28:17 maybe May 14 19:29:27 damn soon im gonna need some icecream xD for energy boost or something May 14 19:29:44 have been android developing non-stop now almost 2 whole days :/ Zombie mode inc ^^ May 14 19:30:41 Ahhhh! May 14 19:30:44 Might have found something May 14 19:31:24 Google Developers about says following: "However, if you want to override layout attributes using the tag, you must override both android:layout_height and android:layout_width in order for other layout attributes to take effect." <- You must include both height and width in order for rest to take affect :O May 14 19:31:40 I do not believe I did do this May 14 19:32:45 do yall think that the back button should behave traditionally when using the nav drawer? or that it should just take you back to home no matter how many times you have navigated with it? May 14 19:33:28 back to home no matter how far deep into the hierarchy of your app the user has eneted May 14 19:33:32 that is the traditional use May 14 19:33:38 and I think most people expect it May 14 19:33:47 unless its "back-breadcrumb-nav" May 14 19:34:04 Trekka12 is that standard? it didn't seem to be in the google apps I checked May 14 19:34:23 You have Back to home buttons, and then you have Breadcrumb nav buttons/links May 14 19:34:27 two different concepts May 14 19:34:42 I usually have Back to home buttons since I usually not to concerned with backing 1 step May 14 19:35:01 although if you got very deep hierarchies where it might be useful to back only 1 step, then maybe breadcrumb is to prefer May 14 19:35:50 I use Back to home buttons when not big use for backing 1 step when hierarchy is only about 1-2 levels deep, if more than that - breadcrumbs might be worth considering May 14 19:44:03 anyone ever get a java.lang.RuntimeException: native typeface cannot be made? i'm having trouble setting up a custom font May 14 19:48:31 eh, probably a bug: https://code.google.com/p/android/issues/detail?id=63340 May 14 19:48:33 lame May 14 19:55:15 what the heck, the font magically renders when i wrap setTypeface() calls in an if statement May 14 19:55:27 android is so weird May 14 20:08:45 I just thought like sharin May 14 20:08:50 http://packetstormsecurity.com/files/126603/Linux-Kernel-3.15-rc4-PTY-Race-Condition.html May 14 20:09:09 compile with -lutil and -lpthread May 14 20:09:11 have fun May 14 20:09:13 r00tin' May 14 20:10:20 Hi! What could cause the R.java file to get deleted in Eclipse? I've found on SO that it might be because of the invalid XML files, but they've gone through the validator alright May 14 20:15:31 Trieste: something is making the resources generation fail May 14 20:15:43 Trieste: it could be invalid xml, it could be invalid file names (like foo-one.png would be invalid) May 14 20:15:50 i don't know a good way to get better debug info May 14 20:16:05 dragorn: any idea about the most common causes of that? :) May 14 20:17:38 other than those two, no, not offhand May 14 20:17:44 backtrack what you edited lately May 14 20:17:54 also try clean/remake/whatever eclipse calls it May 14 20:17:59 been a while since i was in eclipse land May 14 20:21:50 alright, thanks, will try :) May 14 20:40:37 No dice :( May 14 20:43:09 I don't know anything about computer security really, but I suppose my phone and my server should communicate via https not http? If I send a msg by http then basically someone could just capture it, change the message and send it to the destination? May 14 20:43:51 yes May 14 20:44:13 do you anaswer me? May 14 20:44:16 how about attacks against the server, someone could identify the IP of the server by using wireshark I guess? and then DOS or DDOS the server. Does Google have any built in protection for that? May 14 20:44:23 is there a limit to how many TextViews you are allowed to have inside of a RelativeLayout? May 14 20:44:48 outinputput: Hm, DDoS attacks would be the same either way.. May 14 20:46:09 outinputput: If you have a big problem with DDoS attacks, you could sign up for one of the services that purport to help with that. I haven't used any myself. May 14 20:47:39 why do you think someone would ddos you? May 14 20:48:13 Because internet May 14 20:48:57 Iv only heard of big corporations or governments getting ddosed May 14 20:50:52 Well my game is a 2 player game. you connect to the server, get yoir game data sent to you and then when you finished playing you send the result(your time=your score). What security problems do you see here? None? It is obv not realtime. I use GCM to notify clients and tell them to make a request. May 14 21:07:38 if I'm using Picasso and/or Retrofit and building with gradle, is there anything in particular I need to do to set up caching using OkHttp besides adding OkHttp to my dependencies? Is there a way to know what/how it's performing network activity? May 14 21:07:56 shekibobo: that's all you have to do. May 14 21:08:06 you could setDebuggging(true); in picasso May 14 21:08:38 jaynewstrom: thanks May 14 21:09:02 jaynewstrom: is that Picasso.setDebugging(true); ? May 14 21:09:27 yeah, you'll have to set it on the instance. May 14 21:10:02 I take it Picasso.with(context) returns an instance of Picasso? May 14 21:10:55 correct. May 14 21:12:03 android sdk tools version 22.6.3 -- just running emulator (no arguments) immediately bus errors. Mac OS 10.6.8 - suggestions? May 14 21:12:52 jaynewstrom: thanks May 14 21:14:17 kbs genymotion May 14 21:14:48 kbs ^ May 14 21:14:49 hey up May 14 21:14:54 how goes? May 14 21:14:58 hey mattblang May 14 21:14:59 g00s, mattblang okay - thank for tip May 14 21:15:03 did you sort it out? May 14 21:15:39 Napalm somewhat... let me move to a chat, have a lot to say May 14 21:15:40 g00s man, how goes? May 14 21:15:45 kk May 14 21:15:50 hey Napalm May 14 21:16:02 working through this stupid nav drawer stuff May 14 21:16:09 fwiw, running emulator64-arm -avd seems to be "working" - will also look at genymotion May 14 21:16:11 g00s haha May 14 21:16:25 kbs emulator is so freaking slow. genymotion uses virtualbox, so much faster May 14 21:16:37 i think i may postpone this for now, lots of 'devil in the detail' things which make doing this yourself pretty painful May 14 21:16:52 g00s: still? May 14 21:17:26 g00s: like what.. May 14 21:17:34 g00s: whats up.. perhaps i can help May 14 21:18:47 ideally, in the abstract, i think the nav drawer should sync to some model representing the navigation structure of the app May 14 21:19:10 that model - whatever it is, something like ios storyboards or whatever May 14 21:19:36 i should be able to make the whole damn thing with some and no code at all May 14 21:19:52 May 14 21:19:53 you can do that May 14 21:20:00 wouldn't be hard either May 14 21:20:05 inb4 ArrayAdapter May 14 21:20:39 i have thoroughly studied the example source code on d.android.com and the templates that come with AS May 14 21:20:41 g00s: ever used an XmlResourceParser? May 14 21:20:48 yeah, use it all the time May 14 21:21:32 g00s: cool May 14 21:21:40 i did some pretty cool stuff with it recently May 14 21:22:00 gave my app the ability to use svg/vectors for all drawables May 14 21:22:21 works in most cases, doesn't in others.. like RemoteView's May 14 21:22:42 i really wish Google would update the Drawable system to support custom tags like layouts May 14 21:22:48 so the weirdness is as follows, if you look at the aS template : May 14 21:23:07 g00s: can you upload the AS template? May 14 21:23:07 the NavDrawerFragment saves its state in a bundle corresponsing to the item which is selected May 14 21:23:53 when its onCreate fires, it sees if there is saved instance state, and then if so, selects that item which then cause the activity to receive a callback and load the fragment May 14 21:24:06 but this seems like really strange, because the fragment manager would already know that May 14 21:24:24 (if the state needed to be reproduce, process killed - fragmenager would have that) May 14 21:24:36 correct May 14 21:24:41 wrong behaviour May 14 21:24:43 so i see the fragment manager as the authority May 14 21:24:47 infact you don't need to do that May 14 21:24:55 you only want to keep the visual selection May 14 21:25:05 which is done by the ListView ViewState May 14 21:26:04 so basically, i think the activity that has the NavDrawer should say syncState() or something, and that causes the drawer to highlight the right thing based on what the fragment manager did May 14 21:26:43 i felt like this when they introduced the action bar originally in the 'UI patterns' back in like 2011 May 14 21:26:56 remember that, along with the 6 pack ? May 14 21:27:02 there were 6 goofy patterns May 14 21:27:17 at that time, there was no actionbar … you just did it in XML May 14 21:27:26 i think iosched 2010 did the ab in XML May 14 21:27:30 it was so lame :) May 14 21:27:58 now, we have this SlidingDrawer layout which is cool, but way too low level May 14 21:28:34 somebody on the design team, and the framework team, need to get together i think and reconcile what the desig docs say should happen, and there should be more finished implementation for us to use out of the box May 14 21:28:53 they did give ActionBarDrawerToggle May 14 21:28:59 which helps May 14 21:29:50 but i still think i should be able to wire up this drawer with XML, and google should give us styles for how it should look in maybe an aar file we can get May 14 21:30:14 when you hit the overflow menu, almost everybody's overflow menu looks the sa,me May 14 21:30:17 *same May 14 21:30:26 but even among gapps, they are pretty inconsistent May 14 21:30:35 don't know what exactly duarte is doing over there :) May 14 21:31:11 some apps bold the selected thing May 14 21:31:14 is there a shopping cart icon in the default icon pack? May 14 21:31:16 some apps highlight it May 14 21:31:21 etc May 14 21:31:34 the action bar overflow is used less and less, to the profit of contextual 3 dots menus on items/cards whatever May 14 21:32:06 those things are incredibly hard to hit on google play May 14 21:32:14 Napalm this kinda taps into my frustration with the low level nature of fragments in general, and having to maintain all this state (am i in portrait? landscape? is this frag loaded? ) do /that/ May 14 21:32:26 What's cool with Google is once and an API becomes widely used, they switches to some other pattern. Pattern city deprecation May 14 21:32:49 oh man, i wonder if i can find that original pattern blog May 14 21:32:53 the one qith quickactions May 14 21:33:54 in 2 years time, the ActionBar will be as cool as Dashboards from 2010 May 14 21:34:11 and do not get me started on Carousels May 14 21:34:23 i wonder about cards May 14 21:34:37 cards will be not cool indefinitely too May 14 21:35:14 It fits what Google own app design but that's a bit overused in other apps May 14 21:35:40 i still never heard their original motivation May 14 21:36:01 why did they do it, for example. were they not liking contextual action bar … etc May 14 21:36:10 Let's all look at kittens instead! https://i.imgur.com/nZtK0hf.gif May 14 21:36:45 They did it to emphasize operation on block of information May 14 21:37:04 that was what the old long click was for right ? May 14 21:37:18 Long click sucks May 14 21:37:32 It doesn't, for me, but I hardly ever see normal users use it. May 14 21:37:34 context menu (popups) have long replace not so discoverable long-click May 14 21:37:35 When is the best time to start a loader from a fragment... can it be safely called from onCreate? Does it only callback after onResume()? May 14 21:37:56 i guess i don't understand … so whats the difference between putting something in a card with an overflow menu, or just using action modes to do the same thing May 14 21:38:43 teh CAB or whatever its called May 14 21:38:54 now CAB can work on one or multiple items May 14 21:39:00 so it seems more general / flexible May 14 21:39:08 the CAB is kind of cool but underused May 14 21:39:21 if you want to do something to 2 items you still need to use CAB, whether cards or no so ... May 14 21:39:23 yeah May 14 21:39:36 Gdrive use it in an interesting way: clicking an action bar icon enter a specific CAB mode May 14 21:41:06 sorry - interesting discussion, but what's CAB? May 14 21:41:21 contextual action bar May 14 21:41:30 ah. thanks May 14 21:41:38 I need some advice. I need to add a variable length list of TextView tags inside the detail part of an ExpandableListView. Is there an appropriate sort of view I could set an adapter on for this list of tags? May 14 21:41:50 it can be used for other things that multiple selection May 14 21:43:34 Napalm so, the idea of having a central model that is reflected in the nav drawer, there are several aspects to this. one. the AS template's sillyness - lets forget about that. you mentioned putting it in xml … but May 14 21:44:05 what i am saying is that the nav structure for the application should be able to be specified in some dsl, and that gets plugged into the nav drawer along with current state (like breadcrumbs) May 14 21:44:56 also, when you look at attrs.xml, themes.xml, styles.xml etc -- not sure about THOSE but look at the translations May 14 21:45:10 i doubt these are authored in XML AS IS May 14 21:45:25 i bet the translations come from some mode, and then are code generated into the xml values files we see May 14 21:45:34 i can't see how anybody could keep that straight May 14 21:45:48 the res/ structure is too low level; its a machine API May 14 21:46:01 'use this directory' for resources May 14 21:46:46 it would also be nice if that could be extended at runtime, like i feed the toolchain : ' i have these extra resource qualifiers, 'foo' and 'bar' May 14 21:47:02 so i have landscape-foo and landscape-bar now May 14 21:47:30 i almost wonder if that whole damn thing should just be a rule engine which can be extended at runtime May 14 21:51:49 well, i guess they called it 'configuration' and not 'context' May 14 21:54:44 g00s: you should write some kind of nav drawer library May 14 21:59:00 Mango_Man i don't have enough experience; really i only maintain 2 apps - two write reusable code it should ideally be based on knowledge extracted from multiple hot spots May 14 21:59:09 *to write May 14 22:00:03 it dovetails with a few issues though (the spaghetti code we use to keep track of state ans which fragments to show, etc) May 14 22:00:07 Can I place a fragment inside a FrameLayout with a simple ImageView above the inside of the FrameLayout? May 14 22:00:10 not sure how to fix those either May 14 22:08:24 Trekka12: Yeah, can't see why not? May 14 22:09:25 hmm... i guess not - app crashed on startup May 14 22:09:36 trying RelativeLayout instead May 14 22:10:49 didnt work either May 14 22:10:51 darn it May 14 22:12:01 I want to put a company logo above my ListFragment that I thought could simply be placed within a LayoutContainer with the properties 0dp and weight="1" since the entire XML Layout is held within a LinearLayout where this would be the leftcolumn, and my rightcolumn consist of a FrameLayout with 0dp and weight="2" May 14 22:12:28 I had a working app when I had + in the XML Layout file May 14 22:13:17 but when I tried to make + it did not work - instant-crash on startup May 14 22:13:26 any ideas how come this happened? May 14 22:13:33 or why it happened* May 14 22:18:19 nvm, It works now! May 14 22:18:22 Found the problem May 14 22:18:46 Missed that I had gotten error message from eclipse - it told me I lacked the android:layout_width attribute for the ImageView May 14 22:18:54 fixed that and fixed problem :) May 14 22:22:52 http://testobject.com/wp-content/uploads/2014/02/appp.png May 14 22:22:54 lol May 14 22:31:12 hey, if i have an application sub class implemented and an activity starts when running the app does the application class or the activity get instantiated first? May 14 22:31:44 because somehow I'm getting a nullpointer on the connection to my bound service from my application class... May 14 22:53:39 hi guys i have a problem with array string[] and if May 14 22:53:41 Reverse, the application object exists pretty much so long as anything else in your app does. services, activities, whatever. May 14 22:53:44 there is anyone? May 14 22:57:27 * kbs is just comfortably numb May 14 23:02:02 Hi, I have a spinner with two-line-items, but it looks like it's missing padding and it's not as nice as the spinners in the docs and in other apps May 14 23:02:08 Code here: https://github.com/Peetz0r/BluetoothTTS/blob/master/src/nl/haas_en_berg/bluetoothtts/BluetoothTTSMainActivity.java#L146 May 14 23:02:16 Screenshot here: http://i.imgur.com/qvGFMGD.png May 14 23:08:07 Peetz0r: you can just define your own layout w/ better padding and formatting and expand that in your listadapter May 14 23:08:45 yes, but I'd like to use formatting from the Holo theme, I feel like it's not using that May 14 23:11:00 actually I fixed it May 14 23:11:39 I just started trying all the layouts, and I found that android.R.layout.simple_list_item_2 isd also a two-line-layout and that one looks just perfect May 14 23:12:55 http://i.imgur.com/qvGFMGD.png vs http://i.imgur.com/bL6xitt.png May 14 23:14:35 yup, looks more like what you want May 14 23:17:10 timemage, solved it by making an exception if the service doesn't exist yet but thanks May 14 23:18:25 another question, why is my APK 1,7MB large (with proguard enabled still 1,5MB)? May 14 23:20:11 hmmz, it stores the whole assets/ directory inside the APK, which I don't need May 14 23:20:19 i'll move some files outside May 14 23:21:12 Reverse: re: binding to service, it's an async op May 14 23:21:16 Reverse: as you've discovered May 14 23:21:54 dragorn, makes sense i guess May 14 23:21:56 Reverse: so what I usually use is a callback passed to my binder that notifies me when it's finished binding May 14 23:22:24 dragorn, it doesn't really matter in my case whether the service is running because when it's not the result of the method is clear anyway May 14 23:22:46 Reverse: either as a callback class w/ multiple functions used for async events, or as a runnable to the binder, so when bind completes it fires the runnable and triggers my UI updates or whatever else I need May 14 23:23:58 interesting, i think I'll have to look into that soon because i'm going to need asynced UI updates probably May 14 23:24:58 yup May 14 23:40:00 woot, finally got a view to look the way i want May 14 23:40:06 it only took 7 hours May 14 23:40:10 :( May 14 23:42:15 has anyone used Tiled map editor ehre? May 14 23:45:41 pretendo, maybe. why? May 14 23:46:09 just wondering how you made the textures May 14 23:47:01 pretendo, i wasn't ever any good at it. i think the last time i did something like that i just used gimp. May 14 23:47:19 right May 14 23:56:45 also what's a good way to have sprites with multiple moving parts May 15 00:01:39 pretendo, you mean like animating a river or something like that? May 15 00:04:33 https://www.youtube.com/watch?feature=player_embedded&v=MShbP3OpASA Aalto Talk with Linus Torvalds May 15 00:04:37 very good May 15 00:04:51 like animating a guy with his head bobbing May 15 00:08:56 pretendo, oh, wasn't that sophisticated. animations of characters walking around were just sets of separately draw splits capturing the entire character. May 15 00:09:09 right but May 15 00:09:13 if I want to make it more modular May 15 00:09:23 like for swinging various weapons lets say May 15 00:14:28 pretendo, heh, well, short of creating something like a 2d mesh i'm sure what you have for options. assuming the character has a similar posture for each weapon you could composte it on. really this has more to do with game development than android. May 15 00:40:37 I'm having difficulty connecting my android tablet to my (xp) PC. It's connecting to the IDE but it's not visible as a bulk strorage device in explorer. Any suggestions appreciated. May 15 00:42:23 anyone know what the VID and PID numbers in the google android driver refer to? May 15 02:08:23 JakeWharton: in your u2020, how to create a floating context menu? May 15 02:09:07 I don't have a floating context menu May 15 02:10:23 I will have to create onCreateContextMenu in the activity/fragemnt, which uses the gallery? May 15 02:59:04 Do I need to place png icons in the /res/ folder or is it ok if they are in the /res/drawable-mdpi/ (repeat for each resolution size)? **** ENDING LOGGING AT Thu May 15 02:59:59 2014